forked from nextstrain/rsv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnakefile
51 lines (36 loc) · 1.1 KB
/
Snakefile
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
configfile: "config/configfile.yaml"
wildcard_constraints:
a_or_b=r"a|b",
build_dir = "results"
auspice_dir = "auspice"
rule all:
input:
expand(
"auspice/rsv_{subtype}_{build}_{resolution}.json",
subtype=config.get("subtypes", ["a"]),
build=config.get("builds_to_run", ["genome"]),
resolution=config.get("resolutions_to_run", ["all-time"]),
),
include: "workflow/snakemake_rules/chores.smk"
include: "workflow/snakemake_rules/core.smk"
include: "workflow/snakemake_rules/export.smk"
include: "workflow/snakemake_rules/download.smk"
include: "workflow/snakemake_rules/merge.smk"
include: "workflow/snakemake_rules/glycosylation.smk"
include: "workflow/snakemake_rules/clades.smk"
if "deploy_url" in config:
include: "workflow/snakemake_rules/nextstrain_automation.smk"
rule clean:
params:
targets=["auspice", "results"],
shell:
"""
rm -rf {params.targets}
"""
rule clobber:
params:
targets=["data", "auspice", "results"],
shell:
"""
rm -rf {params.targets}
"""