1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-22 17:19:55 +00:00

refactor: make code more explicit, add comment

This commit is contained in:
Moritz E. Beber 2022-04-05 11:29:39 +02:00
parent 59b2088aa1
commit 39e5e802c7

View file

@ -39,7 +39,9 @@ workflow SHORTREAD_ADAPTERREMOVAL {
ADAPTERREMOVAL_PAIRED.out.paired_truncated ADAPTERREMOVAL_PAIRED.out.paired_truncated
) )
.groupTuple() .groupTuple()
.map { [it.head(), it.tail().flatten()] } // Paired-end reads cause a nested tuple during grouping.
// We want to present a flat list of files to `CAT_FASTQ`.
.map { meta, fastq -> [meta, fastq.flatten()] }
CAT_FASTQ(ch_concat_fastq) CAT_FASTQ(ch_concat_fastq)