Closed mahesh-panchal closed 2 months ago
Nextflow does not allow processes/ subworkflows to be reused with the same name. This causes troubles engineering workflows when a learner wants to apply the same process to another output channel. e.g. https://twitter.com/yokofakun/status/1466101898625363968?t=Iw-opIManrMXGjKLLlmhxw&s=03 (slightly different case)
This use case perhaps needs to be more explicit in the possible solutions.
workflow { FASTQC( read_ch ) TRIM_READS( read_ch ) FASTQC( TRIM_READS.out.trimmed_reads ) }
It's not often intuitive that one can swap the position of lines 2 and 3, and then use a channel operator like mix to merge channels for processing.
mix
workflow { TRIM_READS( read_ch ) FASTQC( read_ch.mix( TRIM_READS.out.trimmed_reads) ) }
Nextflow does not allow processes/ subworkflows to be reused with the same name. This causes troubles engineering workflows when a learner wants to apply the same process to another output channel. e.g. https://twitter.com/yokofakun/status/1466101898625363968?t=Iw-opIManrMXGjKLLlmhxw&s=03 (slightly different case)
This use case perhaps needs to be more explicit in the possible solutions.
It's not often intuitive that one can swap the position of lines 2 and 3, and then use a channel operator like
mix
to merge channels for processing.