process { publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } withName: BCFTOOLS_MPILEUP { ext.args2 = '--no-version --ploidy 1 --multiallelic-caller' ext.args3 = '--no-version' } }