/*
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     Config to store EBI's Codon cluster specifics
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

params {
    workdir              = "/hps/nobackup/rdf/metagenomics/service-team/nextflow-workdir/shallow-mapping/$USER"
    singularity_cachedir = "/hps/nobackup/rdf/metagenomics/service-team/singularity-cache/"
}

workDir = params.workdir

profiles {

    ebi_slurm {

        params {
            reference_dbs       = "/hps/nobackup/rdf/metagenomics/service-team/ref-dbs/shallow-mapping/"
            decontamination_indexes  = "/hps/nobackup/rdf/metagenomics/service-team/ref-dbs/bwa-mem2/"
        }

        executor {
            name = "slurm"
            queueSize = 200
            queueGlobalStatus = true
            submitRateLimit = "10 sec"
            pollInterval = "10 sec"

        }

        cleanup = true

        conda.enabled = false

        singularity {
            enabled = true
            autoMounts = true
            cacheDir = params.singularity_cachedir
        }
    }
}
