text: user2970: 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!
  
  user14828: As far as I know, DSL2 should be able to handle this. Have you specified an output qualifier for your process get_fq_info (e.g. path)? I ran into a similar issue when I forgot to specify it.
  For example, this will result in the error process align_bowtie2 declares 1 input channel but 0 were specified:
  process get_fq_info {
     input:
     path reads
  
     output:
     "output.txt"
  
     shell:
     """
     myprocess.sh ${reads} > output.txt
     """
  }
  
  And is probably solved by this:
  process get_fq_info {
     input:
     path reads
  
     output:
     path "output.txt"
  
     shell:
     """
     myprocess.sh ${reads} > output.txt
     """
  
  ```
  
  
  user6628: 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.
  
original_text: 2970: <p>This is my workflow:</p>
  <pre><code>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)
  </code></pre>
  <p>where I want to use the same output from <code>get_fq_info</code> as input for either <code>align_bwa</code> and align_bowtie2`.</p>
  <p>As it's shown here <strong>only align_bwa is executed</strong>. If I comment <code>align_bwa</code> THEN <code>align_bowtie2</code> gets executed.</p>
  <p>How can I fix this?</p>
  <p>Thank you!</p>
   14828: <p>As far as I know, DSL2 should be able to handle this. Have you specified an output qualifier for your process <code>get_fq_info</code> (e.g. <code>path</code>)? I ran into a similar issue when I forgot to specify it.</p>
  <p>For example, this will result in the error <code>process align_bowtie2 declares 1 input channel but 0 were specified</code>:</p>
  <pre><code>process get_fq_info {
     input:
     path reads
  
     output:
     &quot;output.txt&quot;
  
     shell:
     &quot;&quot;&quot;
     myprocess.sh ${reads} &gt; output.txt
     &quot;&quot;&quot;
  }
  </code></pre>
  <p>And is probably solved by this:</p>
  <pre><code>process get_fq_info {
     input:
     path reads
  
     output:
     path &quot;output.txt&quot;
  
     shell:
     &quot;&quot;&quot;
     myprocess.sh ${reads} &gt; output.txt
     &quot;&quot;&quot;
  
  <span class="math-container">```</span>
  </code></pre>
   6628: <p>I have solved this problem in the past by <a href="https://www.nextflow.io/docs/latest/faq.html#how-do-i-use-the-same-channel-multiple-times" rel="nofollow noreferrer">duplicating the output channel</a> of the desired process in order to feed the same output into multiple downstream processes.</p>
  