Skip to content

Commit

Permalink
added dynamic resource disk_mb specification for rule multiqc (bottle…
Browse files Browse the repository at this point in the history
…neck in aws)
  • Loading branch information
FrancescoSantini committed Oct 2, 2024
1 parent 70270e5 commit 63dfb9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions etc/settings.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ execution:
multiqc:
threads: 2
memory: 500
disk_mb: 20000
coverage_bamCoverage:
threads: 1
memory: 4000
Expand Down
3 changes: 2 additions & 1 deletion snakefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@ def hisat2_file_arguments(args):
group: "qc"
output: os.path.join(MULTIQC_DIR, 'multiqc_report.html')
resources:
mem_mb = config['execution']['rules']['multiqc']['memory']
mem_mb = config['execution']['rules']['multiqc']['memory'],
disk_mb = lambda wc, input: max(round(2 * input.size_mb), config['execution']['rules']['multiqc']['disk_mb'])
log: os.path.join(LOG_DIR, f'multiqc.{MAPPER}.log')
shell: "{MULTIQC_EXEC} -f -o {MULTIQC_DIR} {OUTPUT_DIR} >> {log} 2>&1"

Expand Down

0 comments on commit 63dfb9c

Please sign in to comment.