kkonganti@11: // Main driver script kkonganti@11: manifest.mainScript = 'cpipes' kkonganti@11: kkonganti@11: def fs = File.separator kkonganti@11: def pd = "${projectDir}" kkonganti@11: kkonganti@11: // Global parameters kkonganti@11: includeConfig "${pd}${fs}conf${fs}manifest.config" kkonganti@11: includeConfig "${pd}${fs}conf${fs}base.config" kkonganti@11: kkonganti@11: // Include FASTQ config to prepare for a case when the entry point is kkonganti@11: // FASTQ metadata CSV or FASTQ input directory kkonganti@11: includeConfig "${pd}${fs}conf${fs}fastq.config" kkonganti@11: kkonganti@11: if (params.pipeline != null) { kkonganti@11: try { kkonganti@11: includeConfig "${params.workflowsconf}${fs}${params.pipeline}.config" kkonganti@11: } catch (Exception e) { kkonganti@11: System.err.println('-'.multiply(params.linewidth) + "\n" + kkonganti@11: "\033[0;31m${params.cfsanpipename} - ERROR\033[0m\n" + kkonganti@11: '-'.multiply(params.linewidth) + "\n" + "\033[0;31mCould not load " + kkonganti@11: "default pipeline configuration. Please provide a pipeline \n" + kkonganti@11: "name using the --pipeline option.\n\033[0m" + '-'.multiply(params.linewidth) + "\n") kkonganti@11: System.exit(1) kkonganti@11: } kkonganti@11: } kkonganti@11: kkonganti@11: // Include modules' config last. kkonganti@11: includeConfig "${pd}${fs}conf${fs}logtheseparams.config" kkonganti@11: includeConfig "${pd}${fs}conf${fs}modules.config" kkonganti@11: kkonganti@11: // Nextflow runtime profiles kkonganti@11: conda.cacheDir = "${pd}${fs}kondagac_cache" kkonganti@11: singularity.cacheDir = "${pd}${fs}cingularitygac_cache" kkonganti@11: kkonganti@11: profiles { kkonganti@11: includeConfig "${pd}${fs}conf${fs}computeinfra.config" kkonganti@11: }