Processes for imported workflows receive incorrect inputs #2524
-
Bug reportExpected behavior and actual behaviorI have created a workflow in a module file that runs three processes, one after the other. Each process is passed the same input that was passed to the workflow, does some processing, and saves some output. The final process in the workflow takes the same input, plus the outputs of the preceeding processes, and saves some additional output. I then import that workflow into If the workflow is called with That means the final process is being applied to an invalid combination of inputs. Some of the inputs are for completely unrelated runs/instances of the workflow. Steps to reproduce the problemRepo with runnable test case: https://github.com/hotplot/nf-wf-issues Program outputIn the workdir for each of the final processes run by the workflow, there should be:
Instead, the two output subdirectories contain Environment
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That's expected. As per the parallel execution of https://github.com/hotplot/nf-wf-issues/blob/master/foo.nf#L55 Therefore the assumption in the above line that |
Beta Was this translation helpful? Give feedback.
That's expected. As per the parallel execution of
p1
andp2
the sequence of the output values/files cannot be expected to be the same as they were received.https://github.com/hotplot/nf-wf-issues/blob/master/foo.nf#L55
Therefore the assumption in the above line that
p3
is receiving[a,b,c]
as input and from correspondingp1.out
andp2.out
outputs is not correct.