Collecting output from subworkflow #4782
-
Hello! I'm currently developing a pipeline which processes multiple FASTQ files using a subworkflow and piped processes, which places the output in a specific directory. Then afterwards, I'm attempting to run a process that works on the entire directory of output data from the subworkflow. Each step of the pipeline works fine on it's own, but chaining them together has been an issue. I've tried the "collect" operation, as well as defining a dummy process to delay the second process from running until the output folder has been populated by the subworkflow, but the final process executes and fails before all of the samples are processed by the subworkflow. Are there any suggestions how best to chain the subworkflow and the process together? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Why are you trying to make your subworkflow read from the |
Beta Was this translation helpful? Give feedback.
Why are you trying to make your subworkflow read from the
publishDir
directory instead of the work directory? Publishing files work asynch. You should rather make your subworkflow read output channesls from the processes/subworkflows that you're interested in.