1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-13 07:43:08 +00:00

group krakenuniq reads by pairs or single end

This commit is contained in:
James Fellows Yates 2022-11-22 12:13:08 +01:00
parent 461482d22a
commit 0f298dca43

View file

@ -269,6 +269,16 @@ workflow PROFILING {
if ( params.run_krakenuniq ) {
ch_input_for_krakenuniq = ch_input_for_profiling.krakenuniq
.map {
meta, reads, db_meta, db ->
def meta_new = [:]
meta_new['tool'] = meta['tool']
meta_new['single_end'] = meta['single_end']
[meta_new, reads, db_meta, db]
}
.groupTuple(by: [0,2,3])
.dump(tag: "krakenuniq_premultimap")
.multiMap {
it ->
reads: [ it[0] + it[2], it[1] ]