Skip to content
Discussion options

You must be logged in to vote

Hi @maia-munteanu , I converted your issue into a discussion so that it remains open for other users who have similar questions.

When you join the two channels, you will get items that look like [ sample, snv_file, bed_file ]. Since you don't have strict mode enabled, Nextflow only warns you about the tuple mismatch rather than throwing an error. You should be able to fix it by using the map operator as you said:

ch_snv
  .join( ch_bed )
  .map { sample, snv_file, bed_file -> [ sample, snv_file ] }

When mapping over a tuple, you should be able to break out the tuple elements like that, or you could just do it -> [ it[0], it[1] ].

To your second question, this is the correct way to do it. …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maia-munteanu
Comment options

Answer selected by maia-munteanu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #4005 on June 07, 2023 10:21.