Germana Baldi
01/08/2026, 11:10 AMpontus
01/08/2026, 11:32 AMGermana Baldi
01/08/2026, 11:55 AMprocess {
withLabel:dada2_resources {
cpus = { 48 }
memory = { 64.GB}
time = { 144.h }
errorStrategy = 'finish'
maxRetries = 0
}
}
the standard config would be
cpus = { 12 * task.attempt }
memory = { 32.GB * task.attempt }
time = { 12.h * task.attempt }
maxRetries = 3
We first want to launch the standard config anyway. However, if it fails, two things should happen:
• If it failed because the input file was too big, we'd considerably bump resources
• If it failed for any other reason, we leave it to the classic restart machinery
Maybe it helps, the check on the file could happen here (i.e. if REMOVE_AMBIGUOUS_READS.out.noambig_out is too big/complex) - we could add a value to meta to branch the channel out and launch DADA2 with either of the two configspontus
01/08/2026, 2:20 PMcontainerOptions or similar).Germana Baldi
01/08/2026, 2:23 PM