These are chat archives for nextflow-io/nextflow

8th
Jun 2015
Michael L Heuer
@heuermh
Jun 08 2015 19:24 UTC

Another day, another question. I'm looking for something Spark's cartesian method on Channels

http://spark.apache.org/docs/latest/api/java/org/apache/spark/api/java/JavaRDDLike.html#cartesian%28org.apache.spark.api.java.JavaRDDLike%29

For example, I might have a channel with all the input files in it, and another channel with a bunch of different algorithm parameter property files in it, and I want to run all input files over all different algorithm parameter property files.

Paolo Di Tommaso
@pditommaso
Jun 08 2015 19:33 UTC
Is it not the same as spread ?
Michael L Heuer
@heuermh
Jun 08 2015 19:40 UTC
spread takes an array/collection, so I suppose I could use toList on the second channel
Paolo Di Tommaso
@pditommaso
Jun 08 2015 19:41 UTC
yes
Michael L Heuer
@heuermh
Jun 08 2015 19:41 UTC
and lists of tuples should be fine?
Paolo Di Tommaso
@pditommaso
Jun 08 2015 19:42 UTC
I think so,
but I'd suggest to give a try to it
Michael L Heuer
@heuermh
Jun 08 2015 19:43 UTC
yeah seems to work fine, thank you, again :)
Paolo Di Tommaso
@pditommaso
Jun 08 2015 19:43 UTC
;)
welcome