Skip to content

Commit

Permalink
make top-level targets work nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Nov 6, 2020
1 parent 2d5d509 commit 308c825
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion genome_grist/conf/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -122,7 +152,7 @@ rule zip:
"""


rule download_reads:
rule download_sra_general:
output:
"outputs/raw/{sra_id}.fastq.gz",
conda: "env/sra.yml"
Expand Down

0 comments on commit 308c825

Please sign in to comment.