-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile
39 lines (28 loc) · 814 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
34
35
36
37
38
39
from snakemake.utils import min_version as min_snakemake_version
min_snakemake_version(
"7.7.0"
) # Snakemake 7.7.0 introduced `retries` directive used in fetch-sequences
configfile: "config/config.yaml"
rule all:
input:
dataset="data/genbank.ndjson",
sequence="results/sequences.fasta",
metadata="results/metadata_GenBank.tsv",
update="results/metadata_GenBank_update.tsv",
include: "rules/dataset_fetch.smk"
include: "rules/dataset_curate.smk"
include: "rules/nextclade_assign.smk"
if "custom_rules" in config:
for rule_file in config["custom_rules"]:
include: rule_file
rule clean_all:
"""
Clean data and results directories
"""
params:
"data",
"results",
shell:
"""
rm -rf {params}
"""