Liang Chao
09/16/2025, 7:57 PM-profile arm to my command and nextflow.config in my working directory:
process {
resourceLimits = [
cpus: 8,
memory: 8.GB
]
}
Everything worked well until SAMTOOLS_SORT, where I kept encountering error exit status (137), so I assume there was still an out of memory issue.
(Also tried adding --max_memory 8GB to my command but didn't work as well.)
Is there any chance I could bypass this error? Thank you.Jose Espinosa-Carrasco
09/17/2025, 9:32 AMSimon Pearce
09/17/2025, 10:26 AM-m in the command
The documentation says it uses 768MB per thread by default.Liang Chao
09/17/2025, 3:07 PM-m for samtools? Sorry that I'm pretty new to nextflow syntax.Liang Chao
09/17/2025, 8:41 PMJose Espinosa-Carrasco
09/18/2025, 12:34 PMLiang Chao
09/18/2025, 2:04 PMSimon Pearce
09/18/2025, 4:50 PMThank you very much! Is there a way in the command to specifyTake a look at this: https://nf-co.re/docs/usage/getting_started/configuration#customising-tool-argumentsfor samtools? Sorry that I'm pretty new to nextflow syntax.-m
Simon Pearce
09/18/2025, 4:52 PMprocess {
withName: SAMTOOLS_SORT {
cpus = 2
}
}
and then use -c to point to that config fileLiang Chao
09/18/2025, 6:00 PM