You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected module binaries under projectDir/resources/usr/bin to be usable in projectDir/main.nf but they arent found.
It is possible to use projectDir/bin instead but that creates some sharp-edged behavior.
When a project is included instead of run directly, resources/usr/bin would be used instead of bin/.
So the workflows behavior is dependent on it and scripts have to be copied to both directories to get the expected behavior.
Correct me, but this doesnt look like an intended feature.
An interesting point. The module binaries feature was intended for scripts that are only ever included as modules, so if you have some script that is used both as a module and an entrypoint, it is better to move the "include-able" definitions into a separate module.
On the other hand, I was thinking it would be useful to have an entry workflow in each module that simply wraps the process or subworkflow, as a way to test as well as to show example usage. But I think that would also run into this issue.
I sometimes run some modules directly instead of from an workflow, so I agree on its usefulness.
I also try to keep down layers and indirections in the code for simplicity.
My understanding is that the main difference between module binaries and projectDir/bin is that projectDir/bin binaries are visible everywhere in the workflows, subworkflows and modules.
Since i dont see a particular downside to it, i would be in favor of having module binaries visible to the entry workflow, with an error or priority for them over projectDir/bin binaries in case the script-names collide.
Bug report
Expected behavior and actual behavior
I expected module binaries under
projectDir/resources/usr/bin
to be usable inprojectDir/main.nf
but they arent found.It is possible to use
projectDir/bin
instead but that creates some sharp-edged behavior.When a project is included instead of run directly,
resources/usr/bin
would be used instead ofbin/
.So the workflows behavior is dependent on it and scripts have to be copied to both directories to get the expected behavior.
Correct me, but this doesnt look like an intended feature.
Steps to reproduce the problem
projectDir/main.nf:
projectDir/resources/usr/bin/hello1.sh:
projectDir/nextflow.config:
run with:
Program output
.nextflow.log
Environment
The text was updated successfully, but these errors were encountered: