forked from velocyto-team/velocyto.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
53 lines (43 loc) · 1.68 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# from memory_profiler import profile, LogFile
import sys
from pathlib import Path
from loguru import logger
from velocyto.logging import init_logger
from velocyto.commands._run import _run
from velocyto.commands.common import LogicType
sys.path[0] = str(Path(sys.path[0]).parent)
# from memory_profiler import profile, LogFile
# run10x(
# samplefolder=Path("/mnt/vault/PAM/PAM1"),
# gtffile=Path("/mnt/vault/Homo_sapiens.GRCh38.94.chr_patch_hapl_scaff.gtf.gz"),
# mask=Path("/mnt/group/references/genomic/homo_sapiens/sequences/grch3810_repeat_mask.gtf")
# )
def main():
logger.remove()
init_logger(3, msg_format="<cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>")
# sys.stdout = LogFile("memory_profile_log", reportIncrementFlag=False)
samplefolder = Path("/mnt/vault/workspace/analysis/pam")
_run(
bam_input=samplefolder.joinpath("subsample_alignments.bam"),
gtffile=samplefolder.joinpath("genes.gtf"),
bcfile=samplefolder.joinpath("barcodes.tsv.gz"),
outputfolder=samplefolder.joinpath("velocyto"),
sampleid="PAM1",
metadatatable=None,
repmask=samplefolder.joinpath("grch3810_repeat_mask.gtf"),
onefilepercell=False,
logic=LogicType.Permissive10X,
without_umi=False,
umi_extension="no",
multimap=False,
test=False,
samtools_threads=4,
samtools_memory="4G",
dump="0",
loom_numeric_dtype="uint32",
verbose=True,
bughunting=True,
is_10X=True,
samplefolder=samplefolder,
)
main()