mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-25 22:39:54 +00:00
group krakenuniq reads by pairs or single end
This commit is contained in:
parent
461482d22a
commit
0f298dca43
1 changed files with 10 additions and 0 deletions
|
@ -269,6 +269,16 @@ workflow PROFILING {
|
||||||
|
|
||||||
if ( params.run_krakenuniq ) {
|
if ( params.run_krakenuniq ) {
|
||||||
ch_input_for_krakenuniq = ch_input_for_profiling.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 {
|
.multiMap {
|
||||||
it ->
|
it ->
|
||||||
reads: [ it[0] + it[2], it[1] ]
|
reads: [ it[0] + it[2], it[1] ]
|
||||||
|
|
Loading…
Reference in a new issue