Skip to content

Commit ccee5f4

Browse files
committed
Remove last meta map clone
1 parent 0d4aa41 commit ccee5f4

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+
without_technicalrep_number = meta.id - ~/_T\d+/
195+
[ meta + [id: without_technicalrep_number], 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)