process { publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } withName: GATK4_CALCULATECONTAMINATION_SEGMENTATION { ext.args = { "--tumor-segmentation ${meta.id}.segmentation.table" } } }