process {

    publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }

    withName: KHMER_NORMALIZEBYMEDIAN_ARGS {
        ext.args = '-C 20 -k 32'
    }

}
