process { publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } withName: GATK4_VARIANTFILTRATION { ext.args = "--filter-name \'test_filter\' --filter-expression \'MQ0 > 0\'" ext.prefix = { "${meta.id}.filtered" } } }