My bad, actually it is <#C02FC6VFQG1|metatdenovo> ...
# help
h
My bad, actually it is #metatdenovo pipeline https://nf-co.re/metatdenovo/1.2.0/
h
Copy code
bbmap.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:
Copy code
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.
h
I did not git clone the pipeline, but run it with
nextflow run nf-core/metatdenovo
. Is there a way to increase the cpu and mem with the base.config? Thank you!
h
You can provide your local configs via the
-c
option. Refer to the documentation: https://www.nextflow.io/docs/latest/cli.html#hard-configuration-override.
✅ 1