From 308c8251d3168f914f26e4dc9165cce115c5803e Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Fri, 6 Nov 2020 08:47:52 -0800 Subject: [PATCH] make top-level targets work nicely --- genome_grist/conf/Snakefile | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/genome_grist/conf/Snakefile b/genome_grist/conf/Snakefile index df833871..2500888b 100755 --- a/genome_grist/conf/Snakefile +++ b/genome_grist/conf/Snakefile @@ -59,6 +59,36 @@ rule all: f"{outdir}/leftover/depth/{SAMPLE}.summary.csv" +# top-level targets: +# - download_reads +# - trim_reads +# - smash_reads +# - gather_genbank @CTB not yet done +# - download_matching_genomes +# - map_reads +# - summarize + +rule download_reads: + input: + url_file = f"{outdir}/raw/{SAMPLE}.fastq.gz" + +rule trim_reads: + input: + url_file = f"{outdir}/abundtrim/{SAMPLE}.abundtrim.fq.gz" + +rule smash_reads: + input: + url_file = f"{outdir}/sigs/{SAMPLE}.abundtrim.sig" + +rule map_reads: + input: + f"{outdir}/minimap/depth/{SAMPLE}.summary.csv", + f"{outdir}/leftover/depth/{SAMPLE}.summary.csv" + +rule summarize: + input: + outdir + f'/reports/report-{SAMPLE}.html' + rule download_matching_genomes: input: csv = GATHER_CSV, @@ -122,7 +152,7 @@ rule zip: """ -rule download_reads: +rule download_sra_general: output: "outputs/raw/{sra_id}.fastq.gz", conda: "env/sra.yml"