2
$\begingroup$

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!

$\endgroup$
1
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.