Skip to content
Discussion options

You must be logged in to vote

You probably can't use fromFilePairs directly because it is a channel factory, not an operator. However you should be able to chain together some operators to get the same behavior. Here is a sketch:

  1. Given a channel of the output fastq files
  2. Map each file to a tuple with the tissue type, e.g. ['gut', 'new_gut_2.fq']
  3. Use groupTuple to group each pair by tissue type

You will then have tuples like ['gut', 'new_gut_1.fq', 'new_gut_2.fq']. You may need some extra logic to make sure they are in order, and from there you can manipulate the tuple however you want.

Replies: 5 comments 5 replies

Comment options

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

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@bentsherman
Comment options

@mribeirodantas
Comment options

@programmeratlarge
Comment options

Comment options

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

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

This discussion was converted from issue #2889 on July 21, 2022 22:48.