Skip to content

Commit ae956e2

Browse files
authored
Merge pull request #168 from apeltzer/dev
Fix custom config version
2 parents b788272 + 3f9d682 commit ae956e2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

nextflow.config

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,19 @@ params {
4242

4343
igenomesIgnore = false
4444
custom_config_version = 'master'
45+
custom_config_base = "https://raw.githubusercontent.com/nf-core/configs/${params.custom_config_version}"
4546
}
4647

4748

4849
// Load base.config by default for all pipelines
4950
includeConfig 'conf/base.config'
5051

5152
// Load nf-core custom profiles from different Institutions
52-
includeConfig "https://raw.githubusercontent.com/nf-core/configs/${params.custom_config_version}/nfcore_custom.config"
53+
try {
54+
includeConfig "${params.custom_config_base}/nfcore_custom.config"
55+
} catch (Exception e) {
56+
System.err.println("WARNING: Could not load nf-core/config profiles: ${params.custom_config_base}/nfcore_custom.config")
57+
}
5358

5459
profiles {
5560
awsbatch { includeConfig 'conf/awsbatch.config' }

0 commit comments

Comments
 (0)