Emmanuel Labaronne
06/19/2026, 1:29 PMbin/ vs templates/ ?
I understand the basic difference (scripts in bin/ are directly executable and accessible in PATH, while templates/ are used with the template directive and support variable interpolation), but I'm trying to understand:
- In which cases do you prefer one over the other?
- Any major pitfalls to avoid with each approach?
- Is there a community consensus for nf-core pipelines in particular?
Thanks !Arthur
06/19/2026, 1:57 PMbin over templates, in part because the template functionality is somewhat fragile and recommended against by nextflow and in part because a bin script will necessarily be more portable and force you to write more generalised codeArthur
06/19/2026, 1:59 PMEmmanuel Labaronne
06/19/2026, 3:14 PM