These are chat archives for nextflow-io/nextflow

2nd
Feb 2016
wuyilei
@wuyilei
Feb 02 2016 13:14

`data_pairs = data1

            .phase(data2)

            .ifEmpty { error "Cannot find any matching data" }

            .map { pair1, pair2 -> tuple(pair1[0], pair1[1], pair2[1]) }

( data_pairs_copy01, data_pairs_copy02 ) = data_pairs.into( 2 )`

in the above code, what is the meaning of .phase, .map, into method. btw: what is the script language that nextflow is using?
wuyilei
@wuyilei
Feb 02 2016 13:30
where can i get to learn the detail grammar of nextflow scripts. thanks a lot.
Paolo Di Tommaso
@pditommaso
Feb 02 2016 14:30
@wuyilei That are nextflow build in operators
wuyilei
@wuyilei
Feb 02 2016 14:32
@pditommaso thx!
Paolo Di Tommaso
@pditommaso
Feb 02 2016 14:32
However nextflow DSL (domain specific language) is defined as an extension of the Groovy programming lang
A minimal knowledge of Groovy-lang can help you a lot understanding nextflow scripts
wuyilei
@wuyilei
Feb 02 2016 14:36
@pditommaso ok, thx!
Paolo Di Tommaso
@pditommaso
Feb 02 2016 14:42
Here there's an excellent 6-pages language primer
otherwise this book provides a comprehensive guide