Skip to content

Commit

Permalink
move CAT_FASTQ_CONVERTED_BAM
Browse files Browse the repository at this point in the history
  • Loading branch information
TCLamnidis committed May 10, 2024
1 parent 3721e1e commit 47edd9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workflows/eager.nf
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@ workflow EAGER {
[meta, [read1, fastq_other] ]
}

// Put all the converted FASTQs with single-end reads back together again
CAT_FASTQ_CONVERTED_BAM( ch_single_end_reads )

//if BAM is paired-end, pull R1 and R2 outputs, discarding 'other' output and singletons
ch_paired_end_reads = SAMTOOLS_CONVERT_BAM_INPUT.out.fastq
.filter {
meta, reads ->
! meta.single_end
}

// Put all the converted FASTQs back together again
CAT_FASTQ_CONVERTED_BAM( ch_single_end_reads )
ch_fastqs_from_converted_bams = CAT_FASTQ_CONVERTED_BAM.out.reads
.mix(ch_paired_end_reads)
// drop reference and id_index from meta
Expand Down

0 comments on commit 47edd9a

Please sign in to comment.