Mercurial > repos > kkonganti > cfsan_centriflaken
diff 0.2.1/nextflow.config @ 0:77494b0fa3c7
"planemo upload"
author | kkonganti |
---|---|
date | Mon, 27 Jun 2022 15:55:37 -0400 |
parents | |
children | fc2d7be75a28 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/0.2.1/nextflow.config Mon Jun 27 15:55:37 2022 -0400 @@ -0,0 +1,104 @@ +def fs = File.separator +def pd = "${projectDir}" + +// Global parameters +includeConfig "${pd}${fs}conf${fs}manifest.config" +includeConfig "${pd}${fs}conf${fs}base.config" + +// Include FASTQ config to prepare for a case when the entry point is +// FASTQ metadata CSV or FASTQ input directory +includeConfig "${pd}${fs}conf${fs}fastq.config" + +if (params.pipeline != null) { + try { + includeConfig "${params.workflowsconf}${fs}${params.pipeline}.config" + } catch (Exception e) { + System.err.println('-'.multiply(params.linewidth) + "\n" + + "\033[0;31m${params.cfsanpipename} - ERROR\033[0m\n" + + '-'.multiply(params.linewidth) + "\n" + "\033[0;31mCould not load " + + "default pipeline configuration. Please provide a pipeline \n" + + "name using the --pipeline option.\n\033[0m" + '-'.multiply(params.linewidth) + "\n") + System.exit(1) + } +} + +// Include modules' conig last. +includeConfig "${pd}${fs}conf${fs}logtheseparams.config" +includeConfig "${pd}${fs}conf${fs}modules.config" + +// Nextflow runtime profiles +conda.cacheDir = '/nfs/home/galaxy/cfsan-centriflaken-db/kondagac_cache' +singularity.cacheDir = '/nfs/home/galaxy/cfsan-centriflaken-db/cingularitygac_cache' + +profiles { + standard { + process.executor = 'local' + process.cpus = 1 + params.enable_conda = false + params.enable_module = true + singularity.enabled = false + docker.enabled = false + } + + raven { + process.executor = 'slurm' + process.queue = 'prod' + process.memory = '10GB' + process.cpus = 4 + params.enable_conda = false + params.enable_module = true + singularity.enabled = false + docker.enabled = false + clusterOptions = '--signal B:USR2' + } + + cingularity { + process.executor = 'slurm' + process.queue = 'prod' + process.memory = '10GB' + process.cpus = 4 + singularity.enabled = true + singularity.autoMounts = true + docker.enabled = false + params.enable_conda = false + params.enable_module = false + clusterOptions = '--signal B:USR2' + } + + cingularitygac { + process.executor = 'slurm' + executor.$slurm.exitReadTimeout = 60 + process.queue = 'q16cpu' + process.cpus = 4 + singularity.enabled = true + singularity.autoMounts = true + docker.enabled = false + params.enable_conda = false + params.enable_module = false + clusterOptions = '-n 1 --signal B:USR2' + } + + konda { + process.executor = 'slurm' + process.queue = 'prod' + process.memory = '10GB' + process.cpus = 4 + singularity.enabled = false + docker.enabled = false + params.enable_conda = true + params.enable_module = false + clusterOptions = '--signal B:USR2' + } + + kondagac { + process.executor = 'slurm' + executor.$slurm.exitReadTimeout = 60 + process.queue = 'q16cpu' + process.cpus = 4 + singularity.enabled = false + docker.enabled = false + params.enable_conda = true + params.enable_module = false + clusterOptions = '-n 1 --signal B:USR2' + } +}