Skip to content

Commit

Permalink
Merge pull request #405 from nf-core/kaiju2krona-fix
Browse files Browse the repository at this point in the history
Kaiju2krona fix
  • Loading branch information
jfy133 authored Oct 19, 2023
2 parents bdf88d2 + 8245980 commit 067cd2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### `Fixed`

- [#405] Fix database to tool mismatching in KAIJU2KRONA input (❤️ to @MajoroMask for reporting, fix by @jfy133)

### `Dependencies`

### `Deprecated`
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/visualization_krona.nf
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ workflow VISUALIZATION_KRONA {
Combine Kaiju profiles with their databases
*/
ch_input_for_kaiju2krona = ch_input_classifications.kaiju
.map{ [it[0]['db_name'], it[0], it[1]] }
.combine( databases.map{ [it[0]['db_name'], it[1]] }, by: 0 )
.map{ meta, profiles -> [[meta['tool'], meta['db_name']], meta, profiles] }
.combine( databases.map{ meta, db -> [[meta['tool'], meta['db_name']], db] }, by: 0 )
.multiMap{
it ->
profiles: [it[1], it[2]]
Expand Down

0 comments on commit 067cd2c

Please sign in to comment.