process { publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } withName: RAXMLNG_NO_BOOTSTRAP { ext.args = '--model GTR+G' } withName: RAXMLNG_BOOTSTRAP { ext.args = '--all --model GTR+G --bs-trees 1000' } }