Is the `<module_dir>/resources/usr/bin` appr...
# modules
j
Is the
<module_dir>/resources/usr/bin
approach to including scripts in modules generally considered safe/are there issues with the approach? Am writing a module that is currently local and depends on an external script in
bin/
- but would be nice to be able to share the module down the line in a way that includes the script.
f
p
Module binaries are a bit of a thorny issue. Many people in
nf-core
use
template
instead as it's a bit more portable and doesn't come with the complexities of module binaries.
You should be able to find quite a lot of examples of
template
script usage in #modules
j
Thanks, that’s basically what I figured. Unfortunately the template approach doesn’t work in this case - I’m piping the output of minimap2 through a custom perl script and then through samtools. So I need to include the custom perl script as a binary in this case.
👍🏻 1
p
Module binaries are fine, just note that they need Wave to work on cloud
Pipeline binaries don't, but that's mostly a historical accident - they were written before Wave existed. I'm not super confident about how long this difference will exist, there's a lot of nasty code around pipeline level binaries to make them work.
👍 1