Replies: 7 comments
-
Empirically, it seems that copying file globs in this manner is not blocking (because it relies on |
Beta Was this translation helpful? Give feedback.
-
The process output is always a channel, so what you could do is apply
|
Beta Was this translation helpful? Give feedback.
-
Hi @pditommaso - I use |
Beta Was this translation helpful? Give feedback.
-
That's by design. You should only do this to make a copy of the result, not for inter-processes communication. In the latter case make no sense, because NF knows how to handle them. |
Beta Was this translation helpful? Give feedback.
-
When I say blocking, I mean the nextflow program exits before the subscribe closure is called for all entries. It seems that If there were a way to call |
Beta Was this translation helpful? Give feedback.
-
The correct implementation is
The |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
Hello! I'm ramping up with DSL2, and hit a roadblock dealing with processes outputting a glob of files. I wonder if there is a better way to deal with these lists of files, but hopefully my code may help others.
DSL2 modules are great, but the
publishDir
directive is unwieldy for processes imported across multiple workflows; I've found it more tenable to explicitly define a tree of results at the end of my workflow. This requires mapping single files, files in directories, and array lists globbed files. I've illustrated this below.I've been confused by the changes to:
file()
appears to be supported, but the type is not recommended in process outputs in DSL2)Ultimately, I'm wondering if there is a better way to define
copyFilesFromGlob
- and think the docs would benefit from some further explanation or examples dealing with array lists of file paths:Thanks for any pointers!
Beta Was this translation helpful? Give feedback.
All reactions