mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-24 07:59:55 +00:00
refactor: use shorter and more explicit syntax
This commit is contained in:
parent
b2088bcbb3
commit
24e5bc5410
1 changed files with 2 additions and 6 deletions
|
@ -40,9 +40,7 @@ workflow SHORTREAD_ADAPTERREMOVAL {
|
|||
ADAPTERREMOVAL_PAIRED.out.paired_truncated
|
||||
)
|
||||
.map { meta, reads ->
|
||||
def meta_new = meta.clone()
|
||||
meta_new.single_end = true
|
||||
[meta_new, reads]
|
||||
[meta + [single_end: true], reads]
|
||||
}
|
||||
.groupTuple()
|
||||
// Paired-end reads cause a nested tuple during grouping.
|
||||
|
@ -63,9 +61,7 @@ workflow SHORTREAD_ADAPTERREMOVAL {
|
|||
ADAPTERREMOVAL_PAIRED.out.collapsed_truncated
|
||||
)
|
||||
.map { meta, reads ->
|
||||
def meta_new = meta.clone()
|
||||
meta_new.single_end = true
|
||||
[meta_new, reads]
|
||||
[meta + [single_end: true], reads]
|
||||
}
|
||||
.groupTuple()
|
||||
.map { meta, fastq -> [meta, fastq.flatten()] }
|
||||
|
|
Loading…
Reference in a new issue