process {

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

    withName: GENMAP_MAPPABILITY {
        ext.args = '-K 50 -E 2 -w -t -bg'
    }

}
