These are chat archives for nextflow-io/nextflow

19th
Mar 2015
Lukas Jelonek
@lukasjelonek
Mar 19 2015 10:00
Is it possible to use the content of one channel in multiple distinct processes?
Paolo Di Tommaso
@pditommaso
Mar 19 2015 10:54
@lukasjelonek no, currently a channel can have one producer and one consumer
you need to split the channel into two or more channels in order to connect to more processes
However I'm trying to improve this in a future release
Lukas Jelonek
@lukasjelonek
Mar 19 2015 11:07
Thanks, so if I want to do two or more analysis for some output I need to declare multiple channels for the data, am I right?
Paolo Di Tommaso
@pditommaso
Mar 19 2015 11:11
Yes
Another option is to declare the same output file twice using different channels
i.e.
process foo {
  output: 
  file 'x' into alpha
  file 'x' into beta

  """
  your code here  
  """
}
Lukas Jelonek
@lukasjelonek
Mar 19 2015 11:22
That's the way I will do it. Thanks