I've seen deseq2/differential referred to as an ex...
# modules
m
I've seen deseq2/differential referred to as an example of template modules https://github.com/nf-core/modules/tree/master/modules/nf-core/deseq2/differential For R specifically, if the template R script needs to source another R file, where should that be located?
I've been down the rabbit hole and am still not sure what the best practice is https://github.com/nf-core/tools/issues/1303 https://github.com/nextflow-io/nextflow/issues/1798 https://github.com/nextflow-io/nextflow/issues/2240 https://github.com/nextflow-io/nextflow/pull/2332 https://nf-co.re/events/2022/bytesize-custom_scripts From this I see
bin
directory within a module for executable scripts and
templates
directory for scripts that want to use variable substitution. What if
templates/foo.R
needs to
source("bar.R")
?