Skip to content

Commit c7a6e4b

Browse files
authored
Fix centrifuger output naming to avoid filename collisions in taxprof… (#11990)
replace meta.id with *
1 parent 28572d4 commit c7a6e4b

5 files changed

Lines changed: 15 additions & 17 deletions

File tree

modules/nf-core/centrifuger/centrifuger/meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ output:
6060
type: file
6161
description: |
6262
File containing classification results
63-
pattern: "${prefix}.tsv"
63+
pattern: "*.tsv"
6464
ontologies:
6565
- edam: http://edamontology.org/format_3475 #TSV
6666
fastq_classified:

modules/nf-core/centrifuger/quantification/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ process CENTRIFUGER_QUANTIFICATION {
1515
path size_table
1616

1717
output:
18-
tuple val(meta), path("${meta.id}.tsv"), emit: report_file
18+
tuple val(meta), path("*.tsv"), emit: report_file
1919
tuple val("${task.process}"), val('centrifuger'), eval("centrifuger -v 2>&1 | sed 's/Centrifuger v//'"), emit: versions_centrifuger, topic: versions
2020

2121
when:

modules/nf-core/centrifuger/quantification/meta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ output:
4949
type: map
5050
description: Groovy Map containing sample information. e.g. `[
5151
id:'sample1' ]`
52-
- "${meta.id}.tsv":
52+
- "*.tsv":
5353
type: file
5454
description: |
5555
File containing taxonomic profiling results
56-
pattern: "${prefix}.tsv"
56+
pattern: "*.tsv"
5757
versions_centrifuger:
5858
- - ${task.process}:
5959
type: string

modules/nf-core/centrifuger/quantification/tests/main.nf.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ nextflow_process {
4343
when {
4444
process {
4545
"""
46-
input[0] = CENTRIFUGER_CENTRIFUGER.out.classification_file
46+
input[0] = CENTRIFUGER_CENTRIFUGER.out.classification_file.map { meta, file -> [[id: 'quant'], file] }
4747
input[1] = UNTAR.out.untar.map{ meta, db -> [ [id:'sarscov2'], db] }
4848
input[2] = []
4949
input[3] = []
@@ -72,7 +72,7 @@ nextflow_process {
7272
when {
7373
process {
7474
"""
75-
input[0] = CENTRIFUGER_CENTRIFUGER.out.classification_file
75+
input[0] = CENTRIFUGER_CENTRIFUGER.out.classification_file.map { meta, file -> [[id: 'quant'], file] }
7676
input[1] = UNTAR.out.untar.map{ meta, db -> [ [id:'sarscov2'], db] }
7777
input[2] = []
7878
input[3] = []

modules/nf-core/centrifuger/quantification/tests/main.nf.test.snap

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
"0": [
66
[
77
{
8-
"id": "test",
9-
"single_end": true
8+
"id": "quant"
109
},
11-
"test.tsv:md5,68b329da9893e34099c7d8ad5cb9c940"
10+
"quant.tsv:md5,68b329da9893e34099c7d8ad5cb9c940"
1211
]
1312
],
1413
"1": [
@@ -21,10 +20,9 @@
2120
"report_file": [
2221
[
2322
{
24-
"id": "test",
25-
"single_end": true
23+
"id": "quant"
2624
},
27-
"test.tsv:md5,68b329da9893e34099c7d8ad5cb9c940"
25+
"quant.tsv:md5,68b329da9893e34099c7d8ad5cb9c940"
2826
]
2927
],
3028
"versions_centrifuger": [
@@ -36,15 +34,15 @@
3634
]
3735
}
3836
],
39-
"timestamp": "2026-04-30T12:13:07.817497",
37+
"timestamp": "2026-06-15T17:27:16.601991",
4038
"meta": {
4139
"nf-test": "0.9.4",
42-
"nextflow": "25.10.4"
40+
"nextflow": "26.04.0"
4341
}
4442
},
4543
"sarscov2 - fastq_se": {
4644
"content": [
47-
"test.tsv",
45+
"quant.tsv",
4846
{
4947
"versions_centrifuger": [
5048
[
@@ -55,10 +53,10 @@
5553
]
5654
}
5755
],
58-
"timestamp": "2026-04-22T12:08:55.368311",
56+
"timestamp": "2026-06-15T17:27:08.763745",
5957
"meta": {
6058
"nf-test": "0.9.4",
61-
"nextflow": "25.10.4"
59+
"nextflow": "26.04.0"
6260
}
6361
}
6462
}

0 commit comments

Comments
 (0)