From 137804518f421d9e0769bba96b2c4a458497483f Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:59:14 -0500 Subject: [PATCH] feat: Add nf-core config parameters --- nextflow.config | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/nextflow.config b/nextflow.config index fce47a2..3585de1 100644 --- a/nextflow.config +++ b/nextflow.config @@ -1,3 +1,21 @@ +params { + reference = null + + // Config options + config_profile_name = null + config_profile_description = null + custom_config_version = 'master' + custom_config_base = "https://raw.githubusercontent.com/nf-core/configs/${params.custom_config_version}" + config_profile_contact = null + config_profile_url = null + + // Max resource options + // Defaults only, expecting to be overwritten + max_memory = '128.GB' + max_cpus = 16 + max_time = '240.h' +} + process { errorStrategy = 'finish' time = '7d' @@ -11,6 +29,12 @@ process { } } +try { + includeConfig "${params.custom_config_base}/nfcore_custom.config" +} catch (Exception e) { + System.err.println("WARNING: Could not load nf-core/config profiles: ${params.custom_config_base}/nfcore_custom.config") +} + singularity.enabled = true env {