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

Fix preannotated input (BGC workflow) #394

Merged
merged 1 commit into from
Jul 4, 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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#371](https://github.com/nf-core/funcscan/pull/371) Fixed AMRFinderPlus parameter `arg_amrfinderplus_name`. (by @m3hdad)
- [#376](https://github.com/nf-core/funcscan/pull/376) Fixed an occasional RGI process failure when certain files not produced. (❤️ to @amizeranschi for reporting, fix by @amizeranschi & @jfy133)
- [#386](https://github.com/nf-core/funcscan/pull/386) Updated DeepBGC module to fix output file names, separate annotation step for all BGC tools, add warning if no BGCs found, fix MultiQC reporting of annotation workflow. (by @jfy133, @jasmezz)
- [#392](https://github.com/nf-core/funcscan/pull/392) Fix a docker/singularity only error appearing when running with conda. (❤️ to @ewissel for reporting, fix by @jfy33 & @jasmezz)
- [#392](https://github.com/nf-core/funcscan/pull/392) Fixed a docker/singularity only error appearing when running with conda. (❤️ to @ewissel for reporting, fix by @jfy33 & @jasmezz)
- [#394](https://github.com/nf-core/funcscan/pull/394) Fixed BGC input channel: pre-annotated input is picked up correctly now. (by @jfy133, @jasmezz)

### `Dependencies`

Expand Down
8 changes: 4 additions & 4 deletions workflows/funcscan.nf
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ workflow FUNCSCAN {
}

// Mix back the preannotated samples with the newly annotated ones
ch_prepped_input = ch_intermediate_input.preannotated
.mix( ch_new_annotation )
ch_prepped_input = ch_new_annotation
.filter { meta, fasta, faa, gbk -> meta.category != 'long' }
.mix( ch_intermediate_input.preannotated )
.multiMap {
meta, fasta, faa, gbk ->
fastas: [meta, fasta]
Expand All @@ -147,9 +147,9 @@ workflow FUNCSCAN {

if ( params.run_bgc_screening ){

ch_prepped_input_long = ch_intermediate_input.preannotated
.mix( ch_new_annotation )
ch_prepped_input_long = ch_new_annotation
.filter { meta, fasta, faa, gbk -> meta.category == 'long'}
.mix( ch_intermediate_input.preannotated )
.multiMap {
meta, fasta, faa, gbk ->
fastas: [meta, fasta]
Expand Down
Loading