bpipe
bpipe copied to clipboard
forward input is not seen by next stage after a parallel branch
Hi there,
we realized that since release version 0.9.9.7, forward input
seems to be ignored if run as the last step of a parallel branch. Consider this minimal example:
foo = {
transform(".foo") {
exec "echo $input > $output"
}
}
bar = {
transform(".bar") {
exec "echo $input > $output"
}
forward input
}
foobar = {
transform(".foobar") {
exec "echo $input > $output"
}
}
Bpipe.run {
"%.txt" * [ foo + bar ] + "%.foo" * [ foobar ]
}
In versions prior to 0.9.9.7 the pattern "%.foo"
collects all output files generated by the stage foo
(forwarded by bar
), while 0.9.9.7 issues a warning and doesn't run foobar
at all:
Note: a pattern '%.foo' was provided, but did not match any of the files provided as input [x.bar, y.bar, z.bar].
cheers, Sergi