carpentries-incubator / workflows-nextflow

Workflow management with Nextflow and nf-core
https://carpentries-incubator.github.io/workflows-nextflow/
Other
19 stars 29 forks source link

Channel broken mental model example. #44

Closed mahesh-panchal closed 3 months ago

mahesh-panchal commented 2 years ago

I saw some people do this in the nf-core hackathon today.

This is valid syntax, but doesn't combine input as wanted, which some have tried to use:

workflow {

     input = [
        [ id: "test", single_end: false  ], 
        [ file('SRA_test_1.fastq.gz'), file('SRA_test_2.fastq.gz') ]
     ]
     FOO(input)

      next_input = [
          [ id: "test", single_end: false ],
          FOO.out          // This is invalid. Channels and data can not be combined like this.
      ]
      BAR(next_input)
}