OK everyone, time to review <@UE6D8290F>’s madcap ...
# team-maintainers
j
OK everyone, time to review @Maxime Garcia’s madcap plan, aka, how to provide Groovy functions. I'm not convinced subworkflows is the right way https://github.com/nf-core/modules/pull/7412
🤣 1
m
So in my defence, line 1 to 21 are only used for testing purpose because I was too stupid to figure out a way to make nf-test test work at a function level, I do think it's because the functions are channel manipulation, and nf-test fails at converting the output in json
That being said, I do want to share some code in between pipeline. ie 2 functions and a schema
it's not a modules, so it's something else, hence a subworkflow (even if there's no process, or not even a real worklow, since line 1 to 21 are meant to disappear)
I did ask a similar question years ago about where to store such Nextflow constructs
I did thought about writing a plugin for this, but I do think it might be a waste just to share code
For me, it's just making a POC with the full logic, and then work on improving things
j
IMO POC things probably belong as local subworkflows, not in nf-core/modules
m
My POC spreads over 3 repos
s
We already have 4
utils_*
subworkflows that are basically only to provide functions, so that doesn't seem inconsistent with that.
m
Thanks Simon
I knew you had my back
r
My POC spreads over 3 repos
panic
m
I should have said 3 repos for now
I'm planning on 4
s
hmmm, this is still very much work in progress right?
m
Yes
Definitely, there are things to remove in the script also
But that's the only way for me to test and share things easily
s
Can we add a disclaimer to that effect?
m
I could add testing to use the schema on a yam file
Ok
s
Basically I don't want to have an argument if we decide to remove it šŸ˜‰
m
Of course
Thanks for the idea
s
so if you make it clear that it is currently under development, then we can decide to just remove it and not have to deprecate it in the future
this 1
m
Love the idea
Added a disclaimer