File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,26 @@ Provide git commit id for custom Institutional configs hosted at `nf-core/config
371371--custom_config_version d52db660777c4bf36546ddb188ec530c3ada1b96
372372```
373373
374+ ### ` --custom_config_base `
375+ If you're running offline, nextflow will not be able to fetch the institutional config files
376+ from the internet. If you don't need them, then this is not a problem. If you do need them,
377+ you should download the files from the repo and tell nextflow where to find them with the
378+ ` custom_config_base ` option. For example:
379+
380+ ``` bash
381+ # # Download and unzip the config files
382+ cd /path/to/my/configs
383+ wget https://github.com/nf-core/configs/archive/master.zip
384+ unzip master.zip
385+
386+ # # Run the pipeline
387+ cd /path/to/my/data
388+ nextflow run /path/to/atacseq_pipeline/ --custom_config_base /path/to/my/configs/configs-master/
389+ ```
390+
391+ > Note that the nf-core/tools helper package has a ` download ` command to download all required pipeline
392+ > files + singularity containers + institutional configs in one go for you, to make this process easier.
393+
374394### ` --max_memory `
375395Use to set a top-limit for the default memory requirement for each process.
376396Should be a string in the format integer-unit. eg. ` --max_memory '8.GB' `
Original file line number Diff line number Diff line change @@ -65,14 +65,19 @@ params {
6565 clusterOptions = false
6666 igenomesIgnore = false
6767 custom_config_version = ' master'
68+ custom_config_base = " https://raw.githubusercontent.com/nf-core/configs/${ params.custom_config_version} "
6869
6970}
7071
7172// Load base.config by default for all pipelines
7273includeConfig ' conf/base.config'
7374
7475// Load nf-core custom profiles from different Institutions
75- includeConfig " https://raw.githubusercontent.com/nf-core/configs/${ params.custom_config_version} /nfcore_custom.config"
76+ try {
77+ includeConfig " ${ params.custom_config_base} /nfcore_custom.config"
78+ } catch (Exception e) {
79+ System . err. println (" WARNING: Could not load nf-core/config profiles: ${ params.custom_config_base} /nfcore_custom.config" )
80+ }
7681
7782profiles {
7883 awsbatch { includeConfig ' conf/awsbatch.config' }
You can’t perform that action at this time.
0 commit comments