-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathSnakefile
33 lines (26 loc) · 942 Bytes
/
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
configfile: "defaults/config_dengue.yaml"
serotypes = ['all', 'denv1', 'denv2', 'denv3', 'denv4']
genes = ['genome', 'E']
wildcard_constraints:
serotype = "|".join(serotypes),
gene = "|".join(genes)
rule all:
input:
auspice_json = expand("auspice/dengue_{serotype}_{gene}.json", serotype=serotypes, gene=genes),
tip_frequencies_json= expand("auspice/dengue_{serotype}_{gene}_tip-frequencies.json", serotype=serotypes, gene=genes)
include: "rules/prepare_sequences.smk"
include: "rules/prepare_sequences_E.smk"
include: "rules/construct_phylogeny.smk"
include: "rules/annotate_phylogeny.smk"
include: "rules/export.smk"
# Include custom rules defined in the config.
if "custom_rules" in config:
for rule_file in config["custom_rules"]:
include: rule_file
rule clean:
"""Removing directories: {params}"""
params:
"results ",
"auspice"
shell:
"rm -rfv {params}"