Skip to content

Commit c16fe7c

Browse files
authored
Merge pull request #915 from nf-core/metamap-tidy
Remove last meta map clone
2 parents 0d4aa41 + 4ab556c commit c16fe7c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

workflows/rnaseq.nf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,10 @@ workflow RNASEQ {
191191
.reads
192192
.map {
193193
meta, fastq ->
194-
def meta_clone = meta.clone()
195-
meta_clone.id = meta_clone.id.split('_')[0..-2].join('_')
196-
[ meta_clone, fastq ]
194+
new_id = meta.id - ~/_T\d+/
195+
[ meta + [id: new_id], fastq ]
197196
}
198-
.groupTuple(by: [0])
197+
.groupTuple()
199198
.branch {
200199
meta, fastq ->
201200
single : fastq.size() == 1
@@ -798,7 +797,7 @@ workflow RNASEQ {
798797

799798
methods_description = WorkflowRnaseq.methodsDescriptionText(workflow, ch_multiqc_custom_methods_description)
800799
ch_methods_description = Channel.value(methods_description)
801-
800+
802801
MULTIQC (
803802
ch_multiqc_config,
804803
ch_multiqc_custom_config.collect().ifEmpty([]),

0 commit comments

Comments
 (0)