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

Fix run merging for unmerged PE data

This commit is contained in:
James Fellows Yates 2022-04-12 09:25:27 +02:00
parent afb66e445f
commit a5f4fc42d5
2 changed files with 6 additions and 3 deletions

View file

@ -162,7 +162,7 @@ process {
}
withName: CAT_FASTQ {
ext.prefix = { "${meta.id}-${meta.run_accession}" }
ext.prefix = { "${meta.id}" }
publishDir = [
path: { "${params.outdir}/run_merging/" },
mode: params.publish_dir_mode,

View file

@ -139,7 +139,11 @@ workflow TAXPROFILER {
meta_new.remove('run_accession')
[ meta_new, reads ]
}
.groupTuple()
.groupTuple(by: 0)
.map {
meta, reads ->
[ meta, reads.flatten() ]
}
.branch {
// we can't concate files if there is not a second run, we branch
// here to separate them out, and mix after
@ -151,7 +155,6 @@ workflow TAXPROFILER {
.mix( ch_reads_for_cat_branch.skip )
.map {
meta, reads ->
[ meta, [ reads ].flatten() ]
}