process { publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } withName: UMITOOLS_EXTRACT { ext.args = '--bc-pattern="NNNN"' } withName: UMITOOLS_DEDUP { ext.prefix = { "${meta.id}.dedup" } } }