1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-09-21 04:32:06 +00:00

Apply suggestions from code review

This commit is contained in:
James A. Fellows Yates 2022-06-03 22:33:48 +02:00 committed by GitHub
parent 9462032d00
commit ebdd5683b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,6 @@ workflow PROFILING {
.map {
meta, reads, db_meta, db ->
def sam_format = params.malt_save_reads ? ' --alignments ./ -za false' : ""
// TODO wut? [9a/a441d6] Submitted process > NFCORE_TAXPROFILER:TAXPROFILER:PROFILING:MALT_RUN (null)
def temp_meta = [ id: meta['db_name'] ]
def new_db_meta = db_meta.clone()
new_db_meta['db_params'] = db_meta['db_params'] + sam_format
@ -76,7 +75,6 @@ workflow PROFILING {
[ new_meta, reads, db ]
}
.groupTuple(by: [0,2])
.dump(tag: "into_malt")
.multiMap {
it ->
reads: [ it[0], it[1].flatten() ]