Skip to content

Commit

Permalink
setting empty channel for flagstats
Browse files Browse the repository at this point in the history
  • Loading branch information
jbv2 committed Feb 7, 2025
1 parent 3a3fd69 commit 76f01af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions workflows/eager.nf
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,11 @@ workflow EAGER {
MERGE_LANES_INPUTBAM(ch_bams_from_input)
ch_bams_from_input_lanemerged = MERGE_LANES_INPUTBAM.out.bam
.join(MERGE_LANES_INPUTBAM.out.bai)
ch_flagstat_bams_from_input_lanemerged = MERGE_LANES_INPUTBAM.out.flagstat

} else {
ch_bams_from_input_lanemerged = Channel.empty()
ch_flagstat_input_bam = Channel.empty()
ch_bams_from_input_lanemerged = Channel.empty()
ch_flagstat_bams_from_input_lanemerged = Channel.empty()
}


Expand Down Expand Up @@ -391,7 +392,7 @@ workflow EAGER {
//

ch_flagstat_for_endorspy_raw = MAP.out.flagstat
.mix( MERGE_LANES_INPUTBAM.out.flagstat )
.mix( ch_flagstat_bams_from_input_lanemerged )

if (params.run_bamfiltering & !params.skip_deduplication) {
ch_for_endorspy = ch_flagstat_for_endorspy_raw
Expand Down

0 comments on commit 76f01af

Please sign in to comment.