mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Update subworkflows/nf-core/bam_qc_picard/main.nf
Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se>
This commit is contained in:
parent
3997d28a77
commit
73600b0339
1 changed files with 2 additions and 6 deletions
|
@ -22,12 +22,8 @@ workflow BAM_QC_PICARD {
|
||||||
ch_versions = ch_versions.mix(PICARD_COLLECTMULTIPLEMETRICS.out.versions.first())
|
ch_versions = ch_versions.mix(PICARD_COLLECTMULTIPLEMETRICS.out.versions.first())
|
||||||
|
|
||||||
if (ch_bait_interval || ch_target_interval) {
|
if (ch_bait_interval || ch_target_interval) {
|
||||||
if (ch_bait_interval.isEmpty()) {
|
if (!ch_bait_interval) log.error("Bait interval channel is empty")
|
||||||
log.error("Bait interval channel is empty")
|
if (!ch_target_interval) log.error("Target interval channel is empty")
|
||||||
}
|
|
||||||
if (ch_target_interval.isEmpty()) {
|
|
||||||
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.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())
|
||||||
|
|
Loading…
Reference in a new issue