Skip to content
Discussion options

You must be logged in to vote

Ok, I think I found a way around it; in case it is useful to someone else, the trick was to create channels with the date as a key and the filenames as values for the two inputs and then use join to synchronize them using the key. Like:

out_a_ch.map { file -> tuple(file.name.toString().tokenize('_').get(1), file) }
          .set{ out_a_ch_tuple }

out_b_ch.map { file -> tuple(file.name.toString().tokenize('_').get(1), file) }
          .set{ out_b_ch_tuple }

foo_in_ch = out_a_ch_tuple.join(out_b_ch_tuple)


process foo {
    input:
      set date, file(WI), file(WM) from water_in_ch

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rossijulieta
Comment options

You must be logged in to vote
1 reply
@rossijulieta
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants