nextflow-io/nextflow

Support custom config and params-file in `nextflow config` command

Open

#4.275 geöffnet am 6. Sept. 2023

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Groovy (784 Forks)batch import
good first issue

Repository-Metriken

Stars
 (3.382 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 16T 9h) (54 gemergte PRs in 30 T)

Beschreibung

New feature

The nextflow config command is useful for printing the configuration of a project, but could be improved if it also allowed providing custom config files with -c/-C/-params-file just like nextflow run.

Usage scenario

We can run nextflow config main.nf -profile custom_profile to see the configuration that would be used with a subsequent nextflow run command. However, users often wish to supplement or override the config and params with -c, -C, or -params-file when executing a workflow. Allowing nextflow config to accept these arguments would assist users and developers in understanding how the configuration is parsed and prioritized for debugging purposes.

Suggest implementation

Ideally it would re-use the same logic as nextflow run to parse the configuration & parameters, and use the same CLI syntax, e.g.

nextflow config main.nf -params-file custom.yml -C custom.config

Contributor Guide