mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-25 05:49:55 +00:00
Merge pull request #244 from nf-core/taxpasta-ku-fix
Fix KrakenUniq Taxpasta issue
This commit is contained in:
commit
91255b4d2d
1 changed files with 8 additions and 8 deletions
|
@ -24,17 +24,17 @@ workflow STANDARDISATION_PROFILES {
|
|||
//Taxpasta standardisation
|
||||
ch_input_for_taxpasta = profiles
|
||||
.map {
|
||||
meta, profile ->
|
||||
def meta_new = [:]
|
||||
meta_new.id = meta.db_name
|
||||
meta_new.tool = meta.tool == 'metaphlan3' ? 'metaphlan' : meta.tool == 'malt' ? 'megan6' : meta.tool
|
||||
[meta_new, profile]
|
||||
}
|
||||
.groupTuple ()
|
||||
meta, profile ->
|
||||
def meta_new = [:]
|
||||
meta_new.id = meta.db_name
|
||||
meta_new.tool = meta.tool == 'metaphlan3' ? 'metaphlan' : meta.tool == 'malt' ? 'megan6' : meta.tool
|
||||
[meta_new, profile]
|
||||
}
|
||||
.groupTuple ()
|
||||
.map { [ it[0], it[1].flatten() ] }
|
||||
|
||||
TAXPASTA_MERGE (ch_input_for_taxpasta, [], [])
|
||||
|
||||
|
||||
/*
|
||||
Split profile results based on tool they come from
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue