Hi folks, I'm wondering what the best practice is ...
# modules
t
Hi folks, I'm wondering what the best practice is for tweaking existing modules for use in nf-core pipelines we are developing? For instance, with the lima nf-core module, in the script portion i'm adding "--split-named" because I want the output to be split bams. I also tweaked the samtools index module for my specific purposes. As I am making some modifications from the original published nf-core module, should I move the module to the local folder, rather than the nf-core?
p
This is what
nf-core modules patch
is designed for 👍🏻
There's a #bytesize about it here: https://nf-co.re/events/2023/bytesize_modules_patch
t
oh great thanks for pointing this out! missed this - to clarify this can also be used for pipelines that are going to be part of the main nf-core org?
p
Depends a bit - yes in theory, but also should probably consider whether it's worth pushing changes upstream for others to use
✅ 1
eg. having a module configuration input to switch that parameter on or off, etc.
✅ 1
m
I use patch in #sarek
s
If it is just changing the arguments to the tool, e.g.
--split-named
then you can probably do it via ext.args
this 2