-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
30 lines (26 loc) · 785 Bytes
/
Snakefile
File metadata and controls
30 lines (26 loc) · 785 Bytes
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
rule all:
input:
"data/diamond.dmnd",
rule fetch_references:
input:
config=config["config_file"],
output:
reference_fasta="data/reference_genomes.fasta",
reference_proteins="data/reference_proteins.fasta",
shell:
"""
python3 scripts/fetch_reference_genomes.py \
--config-file {input.config} --reference-nucleotides-file {output.reference_fasta} \
--reference-proteins-file {output.reference_proteins}
"""
rule make_diamond_db:
input:
reference_fasta="data/reference_proteins.fasta",
output:
diamond_db="data/diamond.dmnd",
shell:
"""
diamond makedb \
--in {input.reference_fasta} \
-d {output.diamond_db}
"""