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

Skip binning prep when no binning/aDNA #470

Merged
merged 6 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#439](https://github.com/nf-core/mag/pull/445) - Fix bug in assembly input (by @prototaxites)
- [#447](https://github.com/nf-core/mag/pull/447) - Remove `default: None` from parameter schema (by @drpatelh)
- [#449](https://github.com/nf-core/mag/pull/447) - Fix results file overwriting in Ancient DNA workflow (reported by @alexhbnr, fix by @jfy133)
- [#470](https://github.com/nf-core/mag/pull/470) - Fix binning preparation from running even when binning was requested to be skipped (reported by @prototaxites, fix by @jfy133)

### `Dependencies`

Expand Down
20 changes: 13 additions & 7 deletions workflows/mag.nf
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,12 @@ workflow MAG {
ch_busco_summary = Channel.empty()
ch_checkm_summary = Channel.empty()

BINNING_PREPARATION (
ch_assemblies,
ch_short_reads
)
if ( !params.skip_binning || params.ancient_dna ) {
BINNING_PREPARATION (
ch_assemblies,
ch_short_reads
)
}

/*
================================================================================
Expand Down Expand Up @@ -686,8 +688,10 @@ workflow MAG {
}
}

ch_versions = ch_versions.mix(BINNING_PREPARATION.out.bowtie2_version.first())
ch_versions = ch_versions.mix(BINNING.out.versions)
if ( !params.skip_binning || params.ancient_dna ) {
jfy133 marked this conversation as resolved.
Show resolved Hide resolved
ch_versions = ch_versions.mix(BINNING_PREPARATION.out.bowtie2_version.first())
ch_versions = ch_versions.mix(BINNING.out.versions)
}

/*
* DAS Tool: binning refinement
Expand Down Expand Up @@ -943,7 +947,9 @@ workflow MAG {
}
}

ch_multiqc_files = ch_multiqc_files.mix(BINNING_PREPARATION.out.bowtie2_assembly_multiqc.collect().ifEmpty([]))
if ( !params.skip_binning || params.ancient_dna ) {
ch_multiqc_files = ch_multiqc_files.mix(BINNING_PREPARATION.out.bowtie2_assembly_multiqc.collect().ifEmpty([]))
}

if (!params.skip_binning && !params.skip_prokka){
ch_multiqc_files = ch_multiqc_files.mix(PROKKA.out.txt.collect{it[1]}.ifEmpty([]))
Expand Down