-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSnakefile
20 lines (16 loc) · 823 Bytes
/
Snakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from os.path import join
configfile: "config/config.yaml"
# get list of accession numbers from accession number file
with open(config["accessionNumFile"], 'r') as f:
accession_num_file = f.read()
ACCESSION_NUMBERS = accession_num_file.split()
rule all:
input:
# put which output files you want snakemake to produce here!
# for example, if you want to download the metagenomic FASTA files from NCBI's WGS db, put:
expand(join(config["repositoryDir"],"{accession_num}"), accession_num=ACCESSION_NUMBERS),
expand(join(config["dumpDir"],"{accession_num}.fa"),accession_num=ACCESSION_NUMBERS)
include:
# put which snakemake rule you want to run here!
# for example, if you want to run the snakemake rules to download the FASTA files above, put:
"workflow/rules/download_metagenomic_data.smk"