Hong An
07/26/2025, 3:44 PMHaidong Yi
07/26/2025, 5:16 PMbbmap.sh \\
ref=${fasta} \\
$args \\
threads=$task.cpus \\
-Xmx${task.memory.toGiga()}g
In the source code of BBMAP_INDEX , it sets up the threads and memory from $task , which directly gets the information from the process directive. And you also set the same thing in the args. That's why your got two args instead of replacement.
An easy way to fix your problem is to remove your NFCORE_METATDENOVO:METATDENOVO:BBMAP_INDEX from the nextflow.config and increase your cpu and memory for process_long in conf/basecofnig to:
withLabel:process_long {
time = { 20.h * task.attempt }
cpus = { 12 * task.attempt }
memory = { 96.GB * task.attempt }
}
Or you just add the cpu and memory in the BBMAP_INDEX directive without interfering with other processes.Hong An
07/26/2025, 8:06 PMnextflow run nf-core/metatdenovo . Is there a way to increase the cpu and mem with the base.config? Thank you!Haidong Yi
07/27/2025, 4:20 AM-c option. Refer to the documentation: https://www.nextflow.io/docs/latest/cli.html#hard-configuration-override.