Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Institution/Cluster level config #4952

Open
chris-cheshire opened this issue Apr 26, 2024 · 2 comments
Open

Institution/Cluster level config #4952

chris-cheshire opened this issue Apr 26, 2024 · 2 comments

Comments

@chris-cheshire
Copy link

New feature

We would like to implement some required config for our whole cluster.

This would include required tracer plugins and default executors etc. nf-core provides this through the institution config files but this does not extend to non-nf-core pipelines. Nextflow only looks as high as the user's home directory for config. It would be very useful if we could configure Nextflow to search for config at the system level using an environment variable or something, like NXF_CONFIG. This way we could point to a cluster-level config whenever anyone loads Nextflow using module load by forcing the env variable.

Usage scenario

For system-level config of Nextflow to help enforce best practices within an institution.

Suggest implementation

It would be very useful if we could configure Nextflow to search for config at the system level using an environment variable or something, like NXF_CONFIG. This way we could point to a cluster-level config whenever anyone loads Nextflow using module load by forcing the env variable.

@bentsherman
Copy link
Member

Do you set NXF_HOME to a system-level directory?

I see that the lowest priority config file is $HOME/.nextflow/config, but maybe we could add a priority below that -- $NXF_HOME/config. They are the same when Nextflow is installed in the home directory, but not if it's installed elsewhere.

@chris-cheshire
Copy link
Author

Thanks for the quick reply. We use the LMod module loading system, where the executables for each nextflow version are stored in a system-level directory structure. At the moment we download the all self-packaged version, but I have just seen that you can't use non-core plugins in these releases. We could house the config file in this installation directory or at least a symlink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants