5.5 EXERCISE 1
- Let’s create a couple of files (e.g. paired-end reads) and let’s try to read them as a tuple.
First create a couple of empty files:
See here fromFilePairs.
Answer
- For the second part of this exercise, We can start again from
.fromPath
and read the previous 3.txt
files (“aa.txt”, “bb.txt”, “cc.txt”) into the input channel.
Try to reshape the input channel using different operators by generating:
- A single emission.
- A channel with each possible file combination
- A tuple with a custom id, i.e. something like [“id”, [“aa.txt”, “bb.txt”, “cc.txt”]]
See here the list of Operators available.