【发布时间】:2020-07-07 17:19:49
【问题描述】:
我正在实施 Nextflow 工作流程,其中每个流程都可以提供不同流程下游可能需要的多个输出。
process multiple_outputs {
input:
tuple id, input from previous_process
output:
tuple id, input_for_a, input_for_b, input_for_a_b into downstream
}
Nextflow 文档指出 operator into can use multiple channels 和 promotes channel duplication as a pattern。
但是,这些选项似乎都不适用于 the process primitive 和 multiple channel output is not documented:
-
模式found on this answer(语法错误):
output: tuple id, input_for_a, input_for_b, input_for_a_b into { downstream_a; downstream_b } // nor these variants: // // `into { downstream_a, downstream_b }` // `into downstream_a, downstream_b` // `into tuple a, b` -
重复输出到重复的通道(一个通道是空的):
output: tuple id, input_for_a, input_for_a_b into downstream_a tuple id, input_for_b, input_for_a_b into downstream_b // runs, but cannot find the file in one of the channels
在多个通道中使用输出的正确方法是什么?
【问题讨论】: