Skip to content

Commit 93cb55b

Browse files
committed
Xengsort to topics
1 parent c7a6e4b commit 93cb55b

4 files changed

Lines changed: 34 additions & 35 deletions

File tree

modules/nf-core/xengsort/index/main.nf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ process XENGSORT_INDEX {
1717
output:
1818
path "${index}.hash" , emit: hash
1919
path "${index}.info" , emit: info
20-
path "versions.yml" , emit: versions
20+
tuple val("${task.process}"), val('xengsort'), eval("xengsort --version"), topic: versions, emit: versions_xengsort
2121

2222
when:
2323
task.ext.when == null || task.ext.when
@@ -33,21 +33,11 @@ process XENGSORT_INDEX {
3333
--graft $graft_fasta \\
3434
--nobjects $nobjects \\
3535
--mask '$mask' \\
36-
37-
cat <<-END_VERSIONS > versions.yml
38-
"${task.process}":
39-
xengsort: \$(xengsort --version)
40-
END_VERSIONS
4136
"""
4237

4338
stub:
4439
"""
4540
touch ${index}.info
4641
touch ${index}.hash
47-
48-
cat <<-END_VERSIONS > versions.yml
49-
"${task.process}":
50-
xengsort: \$(xengsort --version)
51-
END_VERSIONS
5242
"""
5343
}

modules/nf-core/xengsort/index/meta.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ tools:
1616
documentation: "https://gitlab.com/genomeinformatics/xengsort"
1717
tool_dev_url: "https://gitlab.com/genomeinformatics/xengsort"
1818
doi: "10.4230/LIPIcs.WABI.2020.4"
19-
licence: ["MIT"]
19+
licence:
20+
- "MIT"
2021
identifier: ""
21-
2222
input:
2323
- host_fasta:
2424
type: file
@@ -55,13 +55,27 @@ output:
5555
description: File with index info file.
5656
pattern: "*info"
5757
ontologies: []
58+
versions_xengsort:
59+
- - ${task.process}:
60+
type: string
61+
description: The name of the process
62+
- xengsort:
63+
type: string
64+
description: The name of the tool
65+
- xengsort --version:
66+
type: eval
67+
description: The expression to obtain the version of the tool
68+
topics:
5869
versions:
59-
- versions.yml:
60-
type: file
61-
description: File containing software versions
62-
pattern: "versions.yml"
63-
ontologies:
64-
- edam: http://edamontology.org/format_3750 # YAML
70+
- - ${task.process}:
71+
type: string
72+
description: The name of the process
73+
- xengsort:
74+
type: string
75+
description: The name of the tool
76+
- xengsort --version:
77+
type: eval
78+
description: The expression to obtain the version of the tool
6579
authors:
6680
- "@diegomscoelho"
6781
maintainers:

modules/nf-core/xengsort/index/tests/main.nf.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ nextflow_process {
2828
then {
2929
assertAll(
3030
{ assert process.success },
31-
{ assert snapshot(process.out).match() }
31+
{ assert snapshot(sanitizeOutput(process.out)).match() }
3232
)
3333
}
3434

modules/nf-core/xengsort/index/tests/main.nf.test.snap

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,25 @@
22
"homo_sapiens - sarscov2 - stub": {
33
"content": [
44
{
5-
"0": [
6-
"index.hash:md5,d41d8cd98f00b204e9800998ecf8427e"
7-
],
8-
"1": [
9-
"index.info:md5,d41d8cd98f00b204e9800998ecf8427e"
10-
],
11-
"2": [
12-
"versions.yml:md5,ede2e0a7a166d5af516a5c15ff6891d5"
13-
],
145
"hash": [
156
"index.hash:md5,d41d8cd98f00b204e9800998ecf8427e"
167
],
178
"info": [
189
"index.info:md5,d41d8cd98f00b204e9800998ecf8427e"
1910
],
20-
"versions": [
21-
"versions.yml:md5,ede2e0a7a166d5af516a5c15ff6891d5"
11+
"versions_xengsort": [
12+
[
13+
"XENGSORT_INDEX",
14+
"xengsort",
15+
"2.0.5"
16+
]
2217
]
2318
}
2419
],
20+
"timestamp": "2026-06-16T11:32:20.570762076",
2521
"meta": {
26-
"nf-test": "0.8.4",
27-
"nextflow": "23.10.1"
28-
},
29-
"timestamp": "2024-03-28T13:35:44.83309745"
22+
"nf-test": "0.9.5",
23+
"nextflow": "26.04.0"
24+
}
3025
}
3126
}

0 commit comments

Comments
 (0)