Hi guys! I have a question concerning the way vers...
# modules
o
Hi guys! I have a question concerning the way versions.yml files are generated inside modules. So far, from what I've seen in existing pipelines, it is hard coded in process scripts directly (and sometimes duplicated when there is a stub directive). It works, but I wonder if we could not simply parse the environment.yml to get the environment state fore each module Is there a way to make it more automated? Like perhaps making a single script somewhere in the repo and using it with afterScript / beforeScript directives? Sorry if you have already answered that question somewhere, but I could not find the information. Thanks!
p
We actively don't want to take it from the
environment.yml
, because we can't guarantee that the user doesn't overwrite it. The only way to be sure is to get the actual command that runs the analysis to also tell us its version.
👍 1
But as for the beforeScript thing, we've been noodling around pretty much that idea for many years now.
That eventually led to new Nextflow syntax that was released this year:
eval
o
Ok I see, that makes sense indeed
p
Together with a new type of Nextflow channels,
topics
With these we should be able to vastly simplify the syntax and make it a whole lot easier to read / update: https://github.com/nf-core/modules/issues/5834
👍 1
You can see in this proof-of-concept PR that implements it in #fetchngs, where it rips out a lot of the code around versions.
o
What you guys did is really impressive! It looks awesome
Thank you @Phil Ewels for this very clear answer
p
Great, glad you like it!
👍 1
This one is somewhat of a personal crusade for me 😅 I sat down with Paolo in person when he visited Sweden in 2018 and we wrote up an issue about it. It's taken a while.. 😆
😂 1
o
Yes it must have been hard to find a good way to handle that and also to implement it. Actually it reminds of Kafka's way of streaming data to specific topics. It's completely in the trend of current methods in data engineering
👌 1