feat: Add nf-core config parameters

This commit is contained in:
Thomas A. Christensen II 2023-09-25 17:59:14 -05:00
parent 3e6a0ca5df
commit 137804518f
Signed by: millironx
GPG key ID: 09335146883990B9

View file

@ -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 {