1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-22 13:29:56 +00:00

Changes after code review

This commit is contained in:
James Fellows Yates 2022-04-13 08:26:08 +02:00
parent a15c45b00c
commit 16a3556bfc

View file

@ -139,15 +139,16 @@ workflow TAXPROFILER {
meta_new.remove('run_accession')
[ meta_new, reads ]
}
.groupTuple(by: 0)
.groupTuple()
.map {
meta, reads ->
[ meta, reads.flatten() ]
}
.branch {
meta, reads ->
// we can't concatenate files if there is not a second run, we branch
// here to separate them out, and mix back in after for efficiency
cat: ( it[0]['single_end'] && it[1].size() > 1 ) || ( !it[0]['single_end'] && it[1].size() > 2 )
cat: ( meta.single_end && reads.size() > 1 ) || ( !meta.single_end && reads.size() > 2 )
skip: true
}