Skip to content

Commit

Permalink
Add memory step-up to make_permutations
Browse files Browse the repository at this point in the history
  • Loading branch information
jluquette committed Aug 2, 2024
1 parent 1138c93 commit 81e80e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snakemake/snakefile.permtool
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ rule make_permutations:
generation_param=lambda wildcards: config['permtool_' + wildcards.muttype + '_generation_param']
threads: 10
resources:
mem_mb=lambda wildcards, input, threads: 5500*threads
# attempt starts at 1. quadruple memory on each attempt. in analysis of 575 single cells,
# 89% of jobs were handled at 1250MB/core, 98.8% at 2500MB/core, maximum job=5374MB/core.
# this should scale on number of mutations, but more work is needed to do that.
mem_mb=lambda wildcards, input, threads, attempt: (4^(attempt-1) * 1250) * threads
shell:
"""
{config[scripts]}/make_permutations.R \
Expand Down

0 comments on commit 81e80e3

Please sign in to comment.