Skip to content

Commit

Permalink
Fix channel mixing
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Jul 6, 2023
1 parent c60a9d0 commit 54869cf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions workflows/mag.nf
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ workflow MAG {
ch_assemblies,
ch_short_reads
)
ch_versions = ch_versions.mix(BINNING_PREPARATION.out.bowtie2_version.first())
}

/*
Expand Down Expand Up @@ -657,6 +658,7 @@ workflow MAG {
ch_short_reads
)
}
ch_versions = ch_versions.mix(BINNING.out.versions)

if ( params.bin_domain_classification ) {

Expand Down Expand Up @@ -688,11 +690,6 @@ workflow MAG {
}
}

if ( !params.skip_binning || params.ancient_dna ) {
ch_versions = ch_versions.mix(BINNING_PREPARATION.out.bowtie2_version.first())
ch_versions = ch_versions.mix(BINNING.out.versions)
}

/*
* DAS Tool: binning refinement
*/
Expand All @@ -717,10 +714,8 @@ workflow MAG {
}

BINNING_REFINEMENT ( ch_contigs_for_binrefinement, ch_prokarya_bins_dastool )

ch_refined_bins = ch_eukarya_bins_dastool.mix(BINNING_REFINEMENT.out.refined_bins)
ch_refined_unbins = BINNING_REFINEMENT.out.refined_unbins

ch_versions = ch_versions.mix(BINNING_REFINEMENT.out.versions)

if ( params.postbinning_input == 'raw_bins_only' ) {
Expand Down

0 comments on commit 54869cf

Please sign in to comment.