-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
85 lines (73 loc) · 1.73 KB
/
Copy pathSnakefile
File metadata and controls
85 lines (73 loc) · 1.73 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import os
from utils import ConfigManager
config = ConfigManager(config)
rule all:
input:
list(config.get_pipeline_files()),
rule cnasim:
params:
b=config.bin_size,
c=config.coverage,
n=config.num_cells,
o=str(config.cnasim_out_dir),
r=config.read_length,
cli_args=config.get_cna_cli_args,
output:
config.cnasim_reads,
config.cnasim_profiles,
config.cnasim_tree
conda:
"envs/cnasim.yaml"
resources:
mem="16G",
threads: config.cnasim_num_threads
shell:
"cnasim "
"-m 1 "
"-B {params.b} "
"-C {params.c} "
"-n {params.n} "
"-o {params.o} "
"-P {threads} "
"-R {params.r} "
"-U "
"{params.cli_args}"
rule snps:
input:
config.cnasim_reads,
output:
config.snps_file,
params:
n=config.num_snps,
p=config.phase_switch_prob,
conda:
"envs/python.yaml"
resources:
mem="16G",
shell:
"python scripts/simulate_snps.py -i {input} -o {output} -n {params.n} -p {params.p}"
rule simulate_snp_counts:
input:
p=config.cnasim_profiles,
r=config.cnasim_reads,
s=config.snps_file,
output:
config.snp_counts_file,
params:
r=config.read_length,
conda:
"envs/python.yaml"
shell:
"python scripts/simulate_snp_counts.py "
"-c {wildcards.cell} "
"-p {input.p} "
"-r {input.r} "
"-s {input.s} "
"-o {output} "
"--read-length {params}"
include: "chisel.smk"
include: "hapclone.smk"
include: "hmmcopy.smk"
include: "signals.smk"
include: "plotting.smk"
include: "benchmarking.smk"