process {
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
}
// necessary to override tests/config/nextflow.config
docker.userEmulation = false