use same output in two processes in nextflow dsl2 This is my workflow:
pre_align()
pre_align.out.single_fastqs.view()
get_fq_info(pre_align.out.single_fastqs)

align_bwa(get_fq_info.out.fq_info)

align_bowtie2(get_fq_info.out.fq_info)

where I want to use the same output from get_fq_info as input for either align_bwa and align_bowtie2`.
As it's shown here only align_bwa is executed. If I comment align_bwa THEN align_bowtie2 gets executed.
How can I fix this?
Thank you!
I have solved this problem in the past by duplicating the output channel of the desired process in order to feed the same output into multiple downstream processes.