mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-22 06:19:55 +00:00
Fix run merging for unmerged PE data
This commit is contained in:
parent
afb66e445f
commit
a5f4fc42d5
2 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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() ]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue