Skip to content

Commit

Permalink
add containers to all rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Oct 9, 2020
1 parent 636db83 commit efd256e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions workflow/rules/alignment.smk
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ rule eager:
reads_origin = "(sra|local)",
conda:
os.path.join(envs_dir,"eager","eager.yaml")
container:
"docker://ktmeaton/plague-phylogeography:eager"
log:
html = os.path.join(logs_dir, "eager", "{reads_origin}", "{sample}.html"),
txt = os.path.join(logs_dir, "eager", "{reads_origin}", "{sample}.log"),
Expand Down Expand Up @@ -75,6 +77,8 @@ rule snippy_pairwise:
reads_origin="(sra|local|assembly)",
conda:
os.path.join(envs_dir,"align","align.yaml")
container:
"docker://ktmeaton/plague-phylogeography:align"
shell:
"if [[ {wildcards.reads_origin} == 'assembly' ]]; then \
snippy \
Expand Down Expand Up @@ -135,6 +139,8 @@ rule snippy_multi:
os.path.join(logs_dir, "snippy_multi","snippy-core.log")
conda:
os.path.join(envs_dir,"align","align.yaml")
container:
"docker://ktmeaton/plague-phylogeography:align"
resources:
cpus = 1,
shell:
Expand Down
12 changes: 12 additions & 0 deletions workflow/rules/filter_mask.smk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ rule detect_repeats:
logs_dir + "/detect_repeats/{reads_origin}/{sample}.log",
conda:
os.path.join(envs_dir,"qc","qc.yaml")
container:
"docker://ktmeaton/plague-phylogeography:qc"
resources:
cpus = 1,
shell:
Expand All @@ -41,6 +43,8 @@ rule detect_low_complexity:
reads_origin = "(reference|assembly)",
conda:
os.path.join(envs_dir,"eager","eager.yaml")
container:
"docker://ktmeaton/plague-phylogeography:eager"
resources:
cpus = 1,
shell:
Expand All @@ -61,6 +65,8 @@ rule detect_snp_density:
reads_origin = "(assembly|sra|local)",
conda:
os.path.join(envs_dir,"qc","qc.yaml")
container:
"docker://ktmeaton/plague-phylogeography:qc"
log:
os.path.join(logs_dir, "detect_snp_density","{reads_origin}","{sample}.log"),
resources:
Expand Down Expand Up @@ -88,6 +94,8 @@ rule merge_snp_density:
density=config["snippy_snp_density"])
conda:
os.path.join(envs_dir,"qc","qc.yaml")
container:
"docker://ktmeaton/plague-phylogeography:qc"
resources:
cpus = 1,
shell:
Expand All @@ -107,6 +115,8 @@ rule snippy_multi_extract:
locus_name=config["reference_locus_name"]),
conda:
os.path.join(envs_dir,"qc","qc.yaml")
container:
"docker://ktmeaton/plague-phylogeography:qc"
resources:
cpus = 1,
shell:
Expand Down Expand Up @@ -137,6 +147,8 @@ rule snippy_multi_filter:
missing = float(config["snippy_missing_data"] / 100)
conda:
os.path.join(envs_dir,"qc","qc.yaml")
container:
"docker://ktmeaton/plague-phylogeography:qc"
resources:
cpus = 1,
shell:
Expand Down
2 changes: 2 additions & 0 deletions workflow/rules/phylogeny.smk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ rule iqtree:
seed = config["iqtree_seed"]
conda:
os.path.join(envs_dir,"phylogeny","phylogeny.yaml")
container:
"docker://ktmeaton/plague-phylogeography:phylogeny"
log:
os.path.join(logs_dir, "iqtree","iqtree.core-filter" + str(config["snippy_missing_data"]) + ".log")
shell:
Expand Down
4 changes: 4 additions & 0 deletions workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ rule qualimap:
html = results_dir + "/qualimap/{reads_origin}/{sample}/qualimapReport.html",
conda:
os.path.join(envs_dir,"qc","qc.yaml")
container:
"docker://ktmeaton/plague-phylogeography:qc"
log:
os.path.join(logs_dir, "qualimap", "{reads_origin}", "{sample}.log")
shell:
Expand Down Expand Up @@ -61,6 +63,8 @@ rule multiqc:
dir = directory(results_dir + "/multiqc/"),
conda:
os.path.join(envs_dir,"qc","qc.yaml")
container:
"docker://ktmeaton/plague-phylogeography:qc"
log:
os.path.join(logs_dir, "multiqc/multiqc.log")
resources:
Expand Down

0 comments on commit efd256e

Please sign in to comment.