Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve condition so SPLIT_FASTQ skipped if only concoct selected as … #667

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### `Fixed`

- [#667](https://github.com/nf-core/mag/pull/667) - Fix pipeline crashing if only CONCOCT selected during binning (reported and fixed by @jfy133)

### `Dependencies`

| Tool | Previous version | New version |
Expand Down
8 changes: 5 additions & 3 deletions subworkflows/local/binning.nf
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,20 @@ workflow BINNING {
bams: [ meta, bams, bais ]
}

FASTA_BINNING_CONCOCT ( ch_concoct_input )
FASTA_BINNING_CONCOCT ( ch_concoct_input.bins, ch_concoct_input.bams )
ch_final_bins_for_gunzip = ch_final_bins_for_gunzip.mix( FASTA_BINNING_CONCOCT.out.bins.transpose() )
ch_binning_results_gzipped_final = ch_binning_results_gzipped_final.mix( FASTA_BINNING_CONCOCT.out.bins )
ch_versions = ch_versions.mix(FASTA_BINNING_CONCOCT.out.versions)
}

// decide which unbinned fasta files to further filter, depending on which binners selected
// NOTE: CONCOCT does not produce 'unbins' itself, therefore not included here.
if ( !params.skip_metabat2 & params.skip_maxbin2 ) {
if ( !params.skip_metabat2 && params.skip_maxbin2 ) {
ch_input_splitfasta = METABAT2_METABAT2.out.unbinned
} else if ( params.skip_metabat2 & !params.skip_maxbin2 ) {
} else if ( params.skip_metabat2 && !params.skip_maxbin2 ) {
ch_input_splitfasta = MAXBIN2.out.unbinned_fasta
} else if ( params.skip_metabat2 && params.skip_maxbin2 ) {
ch_input_splitfasta = Channel.empty()
} else {
ch_input_splitfasta = METABAT2_METABAT2.out.unbinned.mix(MAXBIN2.out.unbinned_fasta)
}
Expand Down
Loading