Skip to content

Commit

Permalink
add memory increase/cap information to RAM control section
Browse files Browse the repository at this point in the history
  • Loading branch information
AroneyS committed Sep 5, 2023
1 parent 99e6bec commit 0a2d7e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aviary/modules/assembly/assembly.smk
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ rule spades_assembly:
threads:
min(config["max_threads"], 64)
resources:
mem_mb = lambda wildcards, attempt: min(int(config["max_memory"])*1024, 512*1024*attempt),
mem_mb = lambda wildcards, attempt: min(int(config["max_memory"])*1024, 256*1024*attempt),
runtime = lambda wildcards, attempt: 72*60 + 24*60*attempt,
log:
"logs/spades_assembly.log"
Expand Down
3 changes: 2 additions & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ can also be kind of memory intensive when given extra threads.

### RAM control

When performing assembly, users are required to estimate how much RAM they will need to use via `-m, --max-memory, --max_memory`
When performing assembly, users are required to estimate how much RAM they will need to use via `-m, --max-memory, --max_memory`.
With HPC cluster submission (see above), requested job memory is increased with each rerun and capped at `max_memory`.

0 comments on commit 0a2d7e0

Please sign in to comment.