Skip to content

Commit

Permalink
fix: set hpc resource config
Browse files Browse the repository at this point in the history
  • Loading branch information
boasvdp committed Mar 22, 2024
1 parent f02eb04 commit a2e64a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ OUT = config["output_dir"]

localrules:
all,
copy_ref,
copy_mask


include: "workflow/rules/fastqc_raw_data.smk"
Expand Down
12 changes: 12 additions & 0 deletions workflow/rules/qc_mapping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ rule CollectAlignmentSummaryMetrics:
"docker://broadinstitute/picard:2.27.5"
params:
use_singularity=config["use_singularity"],
threads: config["threads"]["picard"]
resources:
mem_gb=config["mem_gb"]["picard"],
shell:
"""
if [ {params.use_singularity} == True ]
Expand Down Expand Up @@ -143,6 +146,9 @@ rule CollectGcBiasMetrics:
"docker://broadinstitute/picard:2.27.5"
params:
use_singularity=config["use_singularity"],
threads: config["threads"]["picard"]
resources:
mem_gb=config["mem_gb"]["picard"],
shell:
"""
if [ {params.use_singularity} == True ]
Expand All @@ -167,6 +173,9 @@ rule CollectQualityYieldMetrics:
"docker://broadinstitute/picard:2.27.5"
params:
use_singularity=config["use_singularity"],
threads: config["threads"]["picard"]
resources:
mem_gb=config["mem_gb"]["picard"],
shell:
"""
if [ {params.use_singularity} == True ]
Expand All @@ -192,6 +201,9 @@ rule CollectWgsMetrics:
"docker://broadinstitute/picard:2.27.5"
params:
use_singularity=config["use_singularity"],
threads: config["threads"]["picard"]
resources:
mem_gb=config["mem_gb"]["picard"],
shell:
"""
if [ {params.use_singularity} == True ]
Expand Down
3 changes: 0 additions & 3 deletions workflow/rules/variant_filtering.smk
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ else:
mask=OUT + "/variants_raw/mask.bed",
log:
OUT + "/log/copy_mask.log",
threads: config["threads"]["other"]
resources:
mem_gb=config["mem_gb"]["other"],
shell:
"""
cp {input.mask} {output.mask}
Expand Down

0 comments on commit a2e64a3

Please sign in to comment.