process { publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } withName: DIAMOND_BLASTX { ext.prefix = { "${meta.id}.diamond_blastx" } } }