Skip to content

Commit d5db29c

Browse files
authored
Merge pull request #24 from nf-core/dev
Dev
2 parents eaf8dba + 24996bd commit d5db29c

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

docs/usage.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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`
375395
Use to set a top-limit for the default memory requirement for each process.
376396
Should be a string in the format integer-unit. eg. `--max_memory '8.GB'`

nextflow.config

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
7273
includeConfig '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

7782
profiles {
7883
awsbatch { includeConfig 'conf/awsbatch.config' }

0 commit comments

Comments
 (0)