Start a sub-workflow for each file of a flatten channel #4691
Unanswered
Subject-13
asked this question in
Q&A
Replies: 2 comments
-
You should set it per process with the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for replying! I already solved that problem weeks ago by myself, thats why I closed this thread. But I'll publish my solution for the record.
That's how I'm passing the name of the desired subfolder for all future process calls, so every generated file of process A finds the right subfolder. Edit: Typos |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I have the following scenario: I have written a workflow that calls a process that emits 10 files. This workflow finally emits these results as a channel (as far as I understand it).
Now I want to start a separate sub-workflow for each file from this channel, whereby the results of the sub-workflows are to be saved in their own folders whose names are based on the file names of the 10 original files.
To do this, I am currently passing a
.flatten
channel to the sub-workflow call (like:subworkflow(start.out.flatten())
so that each item is passed individually. This also seems to work the way I want it to. But I still need dynamic output folders based on the file names. Can I have each sub-workflow-call create its own folder where the results are stored?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions