Skip to content

Commit

Permalink
Merge pull request #722 from AlexsLemonade/allyhawkins/cell-assign-me…
Browse files Browse the repository at this point in the history
…m-bump

Add max_mem label for Cell Assign
  • Loading branch information
allyhawkins authored Mar 11, 2024
2 parents 1569842 + 80b60a2 commit b400776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/process_base.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ process{
withLabel: mem_96 {
memory = {check_memory(48.GB + 48.GB * task.attempt, params.max_memory)}
}
withLabel: mem_max {
memory = {task.attempt > 1 ? params.max_memory : check_memory(96.GB, params.max_memory)}
}
withLabel: cpus_2 {
cpus = {check_cpus(2, params.max_cpus)}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/classify-celltypes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ process classify_cellassign {
mode: 'copy',
pattern: "${cellassign_dir}"
)
label 'mem_96'
label 'mem_max'
label 'cpus_12'
tag "${meta.library_id}"
input:
Expand Down

0 comments on commit b400776

Please sign in to comment.