process { publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } withName: MOSDEPTH_FAIL { ext.args = "--by 100" } withName: MOSDEPTH_WINDOW { ext.args = "--by 100" } }