fix metrics output

This commit is contained in:
Matthias De Smet 2022-04-28 13:59:46 +02:00
parent 2fc857955f
commit 4618c542e9

View file

@ -29,12 +29,12 @@ workflow BAM_QC_PICARD {
log.error("Target interval channel is empty") log.error("Target interval channel is empty")
} }
PICARD_COLLECTHSMETRICS( ch_bam, ch_fasta, ch_fasta_fai, ch_bait_interval, ch_target_interval ) PICARD_COLLECTHSMETRICS( ch_bam, ch_fasta, ch_fasta_fai, ch_bait_interval, ch_target_interval )
ch_coverage_metrics.mix(PICARD_COLLECTHSMETRICS.out.coverage_metrics.first()) ch_coverage_metrics.mix(PICARD_COLLECTHSMETRICS.out.metrics.first())
ch_versions = ch_versions.mix(PICARD_COLLECTHSMETRICS.out.versions.first()) ch_versions = ch_versions.mix(PICARD_COLLECTHSMETRICS.out.versions.first())
} else { } else {
PICARD_COLLECTWGSMETRICS( ch_bam, ch_fasta ) PICARD_COLLECTWGSMETRICS( ch_bam, ch_fasta )
ch_versions = ch_versions.mix(PICARD_COLLECTWGSMETRICS.out.versions.first()) ch_versions = ch_versions.mix(PICARD_COLLECTWGSMETRICS.out.versions.first())
ch_coverage_metrics.mix(PICARD_COLLECTWGSMETRICS.out.coverage_metrics.first()) ch_coverage_metrics.mix(PICARD_COLLECTWGSMETRICS.out.metrics.first())
} }
emit: emit: