nf-core / tools

Python package with helper tools for the nf-core community.
https://nf-co.re
MIT License
242 stars 191 forks source link

Avoid using custom functions in config files #1287

Open drpatelh opened 3 years ago

drpatelh commented 3 years ago

I think we have to be careful with using custom functions in config files. See https://github.com/nextflow-io/nextflow/issues/870#issuecomment-441100071. When running NF on Kubernetes this causes issues with the way the configs are resolved. I have been trying to find another solution to using the check_max function in nextflow.config too to fix this too.

See https://github.com/nf-core/rnaseq/pull/701#discussion_r725950036

ewels commented 2 years ago

We can hopefully ditch check_max() in the near future and make use of native Nextflow functionality, see https://github.com/nextflow-io/nextflow/issues/640 - that is the ideal way to solve this issue 😉