1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-10 23:03:10 +00:00

Merge pull request #244 from nf-core/taxpasta-ku-fix

Fix KrakenUniq Taxpasta issue
This commit is contained in:
James A. Fellows Yates 2023-02-22 14:20:06 +01:00 committed by GitHub
commit 91255b4d2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,17 +24,17 @@ workflow STANDARDISATION_PROFILES {
//Taxpasta standardisation //Taxpasta standardisation
ch_input_for_taxpasta = profiles ch_input_for_taxpasta = profiles
.map { .map {
meta, profile -> meta, profile ->
def meta_new = [:] def meta_new = [:]
meta_new.id = meta.db_name meta_new.id = meta.db_name
meta_new.tool = meta.tool == 'metaphlan3' ? 'metaphlan' : meta.tool == 'malt' ? 'megan6' : meta.tool meta_new.tool = meta.tool == 'metaphlan3' ? 'metaphlan' : meta.tool == 'malt' ? 'megan6' : meta.tool
[meta_new, profile] [meta_new, profile]
} }
.groupTuple () .groupTuple ()
.map { [ it[0], it[1].flatten() ] }
TAXPASTA_MERGE (ch_input_for_taxpasta, [], []) TAXPASTA_MERGE (ch_input_for_taxpasta, [], [])
/* /*
Split profile results based on tool they come from Split profile results based on tool they come from
*/ */