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