Skip to content

Commit 226b107

Browse files
authored
Merge pull request #29 from bigbio/dev
Move to thermorawfileparser to 2.0.0dev
2 parents 0318e0a + 169640e commit 226b107

File tree

6 files changed

+121
-21
lines changed

6 files changed

+121
-21
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ testing/
199199
testing*/
200200
*.pyc
201201
.nf-test
202-
*nf.test.snap
202+
nf.test.snap
203203

204204
# Codacy
205205
.codacy
206206

207207
# IDEA
208208
.idea/
209+
210+
.nf-test*
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"versions_phosphors": {
3+
"content": [
4+
[
5+
"versions.yml:md5,bafdb21e8e35a3f6128f4b8fb2f17fa6"
6+
]
7+
],
8+
"timestamp": "2026-03-22T22:19:06.163312",
9+
"meta": {
10+
"nf-test": "0.9.5",
11+
"nextflow": "25.10.4"
12+
}
13+
},
14+
"versions_ascore": {
15+
"content": [
16+
[
17+
"versions.yml:md5,e0bda208d6e29ca106d701db6ff8c6c9"
18+
]
19+
],
20+
"timestamp": "2026-03-22T22:17:57.833213",
21+
"meta": {
22+
"nf-test": "0.9.5",
23+
"nextflow": "25.10.4"
24+
}
25+
},
26+
"versions_stub": {
27+
"content": [
28+
[
29+
"versions.yml:md5,669fa42376f9ff6641abd22c67e507d6"
30+
]
31+
],
32+
"timestamp": "2026-03-22T22:25:52.844037",
33+
"meta": {
34+
"nf-test": "0.9.5",
35+
"nextflow": "25.10.4"
36+
}
37+
},
38+
"versions_lucxor": {
39+
"content": [
40+
[
41+
"versions.yml:md5,669fa42376f9ff6641abd22c67e507d6"
42+
]
43+
],
44+
"timestamp": "2026-03-22T22:22:30.192671",
45+
"meta": {
46+
"nf-test": "0.9.5",
47+
"nextflow": "25.10.4"
48+
}
49+
}
50+
}

modules/bigbio/thermorawfileparser/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ channels:
33
- bioconda
44
- defaults
55
dependencies:
6-
- bioconda::thermorawfileparser=1.4.5
6+
- bioconda::thermorawfileparser=2.0.0.dev

modules/bigbio/thermorawfileparser/main.nf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ process THERMORAWFILEPARSER {
55
label 'error_retry'
66

77
conda "${moduleDir}/environment.yml"
8-
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
9-
? 'https://depot.galaxyproject.org/singularity/thermorawfileparser:1.4.5--h05cac1d_1'
10-
: 'biocontainers/thermorawfileparser:1.4.5--h05cac1d_1'}"
8+
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
9+
'https://depot.galaxyproject.org/singularity/thermorawfileparser:2.0.0.dev--h9ee0642_0' :
10+
'biocontainers/thermorawfileparser:2.0.0.dev--h9ee0642_0' }"
1111

1212
input:
1313
tuple val(meta), path(raw)
1414

1515
output:
1616
tuple val(meta), path("*.{mzML,mzML.gz,mgf,mgf.gz,parquet,parquet.gz}"), emit: spectra
17-
tuple val("${task.process}"), val('thermorawfileparser'), eval("ThermoRawFileParser.sh --version"), emit: versions_thermorawfileparser, topic: versions
17+
tuple val("${task.process}"), val('thermorawfileparser'), eval("thermorawfileparser --version"), emit: versions_thermorawfileparser, topic: versions
1818
path "*.log", emit: log
1919

2020
when:
@@ -40,7 +40,7 @@ process THERMORAWFILEPARSER {
4040
suffix = args.contains("--gzip") ? "${suffix}.gz" : "${suffix}"
4141

4242
"""
43-
ThermoRawFileParser.sh \\
43+
thermorawfileparser \\
4444
-i='${raw}' \\
4545
${formatArg} ${args} \\
4646
-o=./ 2>&1 | tee '${prefix}_conversion.log'
@@ -66,7 +66,7 @@ process THERMORAWFILEPARSER {
6666
6767
cat <<-END_VERSIONS > versions.yml
6868
"${task.process}":
69-
ThermoRawFileParser: \$(ThermoRawFileParser.sh --version)
69+
ThermoRawFileParser: \$(thermorawfileparser --version)
7070
END_VERSIONS
7171
"""
7272
}

modules/bigbio/thermorawfileparser/tests/main.nf.test.snap

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,79 @@
55
[
66
"THERMORAWFILEPARSER",
77
"thermorawfileparser",
8-
"1.4.5"
8+
"2.0.0.0"
99
]
1010
]
1111
],
12-
"timestamp": "2026-03-20T12:41:22.8183",
1312
"meta": {
14-
"nf-test": "0.9.4",
15-
"nextflow": "25.10.4"
16-
}
13+
"nf-test": "0.9.3",
14+
"nextflow": "25.04.6"
15+
},
16+
"timestamp": "2026-03-23T22:31:25.789483"
1717
},
1818
"versions": {
1919
"content": [
2020
[
2121
[
2222
"THERMORAWFILEPARSER",
2323
"thermorawfileparser",
24-
"1.4.5"
24+
"2.0.0.0"
2525
]
2626
]
2727
],
28-
"timestamp": "2026-03-20T12:36:30.88531",
2928
"meta": {
30-
"nf-test": "0.9.4",
31-
"nextflow": "25.10.4"
32-
}
29+
"nf-test": "0.9.3",
30+
"nextflow": "25.04.6"
31+
},
32+
"timestamp": "2026-03-23T22:29:04.754961"
33+
},
34+
"Should run stub mode": {
35+
"content": [
36+
{
37+
"0": [
38+
[
39+
{
40+
"id": "test_sample",
41+
"mzml_id": "test_sample"
42+
},
43+
"test_sample.mzML:md5,d41d8cd98f00b204e9800998ecf8427e"
44+
]
45+
],
46+
"1": [
47+
[
48+
"THERMORAWFILEPARSER",
49+
"thermorawfileparser",
50+
"2.0.0.0"
51+
]
52+
],
53+
"2": [
54+
"test_sample_conversion.log:md5,d41d8cd98f00b204e9800998ecf8427e"
55+
],
56+
"log": [
57+
"test_sample_conversion.log:md5,d41d8cd98f00b204e9800998ecf8427e"
58+
],
59+
"spectra": [
60+
[
61+
{
62+
"id": "test_sample",
63+
"mzml_id": "test_sample"
64+
},
65+
"test_sample.mzML:md5,d41d8cd98f00b204e9800998ecf8427e"
66+
]
67+
],
68+
"versions_thermorawfileparser": [
69+
[
70+
"THERMORAWFILEPARSER",
71+
"thermorawfileparser",
72+
"2.0.0.0"
73+
]
74+
]
75+
}
76+
],
77+
"meta": {
78+
"nf-test": "0.9.3",
79+
"nextflow": "25.04.6"
80+
},
81+
"timestamp": "2026-03-23T22:31:25.88765"
3382
}
3483
}

tests/config/test_data.config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ params {
2020
}
2121
onsite {
2222
// Test data for onsite PTM localization module
23-
// Using GitHub media links to download LFS files
24-
mzml = "https://media.githubusercontent.com/media/weizhongchun/test-data/main/data/1.mzML"
25-
idxml = "https://raw.githubusercontent.com/weizhongchun/test-data/main/data/1_consensus_fdr_filter_pep.idXML"
23+
mzml = "https://ftp.pride.ebi.ac.uk/pub/databases/pride/resources/proteomes/quantms-ci-github/onsite/1.mzML"
24+
idxml = "https://ftp.pride.ebi.ac.uk/pub/databases/pride/resources/proteomes/quantms-ci-github/onsite/1_consensus_fdr_filter_pep.idXML"
2625
}
2726
}
2827
}

0 commit comments

Comments
 (0)