Skip to content

Commit

Permalink
Add resources directive to fastqc rules
Browse files Browse the repository at this point in the history
  • Loading branch information
vinisalazar committed Mar 4, 2024
1 parent 07578fd commit f62fea5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions metaphor/workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ rule fastqc_raw: # qc on raw, unmerged reads
html="output/qc/fastqc/{sample}-{unit}-{read}-raw.html",
params:
"--quiet",
resources:
mem_mb=10000 if get_max_mb(0.5) > 10000 else get_max_mb(0.5),
wildcard_constraints:
sample="|".join(sample_IDs),
unit="|".join(unit_names),
Expand All @@ -127,6 +129,8 @@ rule fastqc_trimmed: # qc on trimmed reads
output:
zip="output/qc/fastqc/{sample}-{unit}-{read}-trimmed_fastqc.zip",
html="output/qc/fastqc/{sample}-{unit}-{read}-trimmed.html",
resources:
mem_mb=10000 if get_max_mb(0.5) > 10000 else get_max_mb(0.5),
params:
"--quiet",
wildcard_constraints:
Expand All @@ -151,6 +155,8 @@ rule fastqc_merged: # qc on trimmed, merged reads
output:
zip="output/qc/fastqc/{sample}-{read}-merged_fastqc.zip",
html="output/qc/fastqc/{sample}-{read}-merged.html",
resources:
mem_mb=10000 if get_max_mb(0.5) > 10000 else get_max_mb(0.5),
params:
"--quiet",
wildcard_constraints:
Expand Down

0 comments on commit f62fea5

Please sign in to comment.