I made my first Nextflow plugin (<nf-dotenv>)! Fo...
# nextflow-plugins
c
I made my first Nextflow plugin (nf-dotenv)! For complex projects where some configuration is stored in the environment or in a dotenv file (spec, example) it would be nice to pull that config into the Nextflow scope. This plugin achieves that with the import of a single function. I have a mini real-world example in the README for projects where we use Docker Compose to build, tag, label, and push to registry many images and also want Nextflow processes to stay in sync with those container versions. I'd be curious to know what you think and if it could be useful to any of your projects. I have a PR up to include the plugin in the Nextflow registry, so until then, it can really only be used by being built locally.
👀 1
🙌 2
a
That's awesome! As someone who's laptop disk is 80%
.env
files this will be really useful. Does it work in the config scope?
c
@Adam Talbot I don't think it works in the config scope unfortunately... Only processes and workflows as far as I can tell. https://www.nextflow.io/docs/latest/plugins.html#functions
I too, love the
.env
file 😅
https://direnv.net/ is always with me as well
❤️ 1
The plugin will let you override the filename so you can do
.env
or
.envrc
for this reason.
b
well done. this will be very useful