Skip to content

Commit

Permalink
Fixed mosdepth process
Browse files Browse the repository at this point in the history
  • Loading branch information
svarona committed Dec 27, 2023
1 parent cfea905 commit eb7a82d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions workflows/illumina.nf
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ workflow ILLUMINA {
ch_amplicon_heatmap_multiqc = Channel.empty()
if (!params.skip_variants && !params.skip_mosdepth) {
MOSDEPTH_GENOME (
ch_bam.join(ch_bai, by: [0]),
ch_bam
.join(ch_bai, by: [0])
.map { meta, bam, bai -> [ meta, bam, bai, [] ] },
[ [:], [] ],
)
ch_mosdepth_multiqc = MOSDEPTH_GENOME.out.global_txt
Expand All @@ -406,8 +408,10 @@ workflow ILLUMINA {

if (params.protocol == 'amplicon') {
MOSDEPTH_AMPLICON (
ch_bam.join(ch_bai, by: [0]),
PREPARE_GENOME.out.primer_collapsed_bed.map { [ [:], it ] },
ch_bam
.join(ch_bai, by: [0])
.join(PREPARE_GENOME.out.primer_collapsed_bed),
[ [:], [] ],
)
ch_versions = ch_versions.mix(MOSDEPTH_AMPLICON.out.versions.first().ifEmpty(null))

Expand Down

0 comments on commit eb7a82d

Please sign in to comment.