Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz E. Beber <[email protected]>
  • Loading branch information
jfy133 and Midnighter authored Oct 25, 2023
1 parent bdd514d commit da8bf5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions subworkflows/local/profiling.nf
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ workflow PROFILING {
// Note may need to rename back to to just bracken in those downstream steps depending on context.
.map {
meta, report ->
def new_tool = meta['tool'] == 'bracken' ? 'kraken2-bracken' : meta['tool']
[meta + [tool: new_tool], report]
def new_tool =
[meta + [tool: meta.tool == 'bracken' ? 'kraken2-bracken' : meta.tool], report]
}
)

Expand Down
2 changes: 0 additions & 2 deletions subworkflows/local/standardisation_profiles.nf
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ workflow STANDARDISATION_PROFILES {
new_meta.db_name = meta.tool == 'kraken2-bracken' ? "${meta.db_name}-bracken" : "${meta.db_name}" // append so to disambiguate when we have same databases for kraken2 step of bracken, with normal bracken
[ new_meta, profiles ]
}
.dump(tag: 'b4group')
.groupTuple(sort: {-it.size()})
.dump(tag: 'whatsgoingon')

KRAKENTOOLS_COMBINEKREPORTS_KRAKEN ( ch_profiles_for_kraken2 )
ch_multiqc_files = ch_multiqc_files.mix( KRAKENTOOLS_COMBINEKREPORTS_KRAKEN.out.txt )
Expand Down
3 changes: 1 addition & 2 deletions subworkflows/local/visualization_krona.nf
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ workflow VISUALIZATION_KRONA {
ch_kraken_reports = ch_input_profiles.kraken2
.map {
meta, report ->
def new_tool = meta['tool'] == 'kraken2-bracken' ? 'bracken' : meta['tool']
[meta + [tool: new_tool], report]
[meta + [tool: meta.tool == 'bracken' ? 'kraken2-bracken' : meta.tool], report]
}
.mix( ch_input_profiles.centrifuge )
KRAKENTOOLS_KREPORT2KRONA ( ch_kraken_reports )
Expand Down

0 comments on commit da8bf5a

Please sign in to comment.