process { withName: glimpse_chunk { ext.args = [ "--window-size 2000000", "--buffer-size 200000" ].join(' ') ext.prefix = { "${meta.id}" } } publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } }