Closed rolivella closed 8 months ago
Hello again, I've just reviewed my own issue and I'm a little closer to the solution. I understand from the documentation:
https://ms2rescore.readthedocs.io/en/latest/userguide/configuration/#mapping-psms-to-spectra
That I should add something like this to the JSON config file:
"spectrum_id_pattern": ".*scan=(\\d+)$",
"psm_id_pattern": ".*\\..*\\.(.*)"
However, in my mzid
file there's no any spectrum_id
field, so how can I parse the PSM with the psm_id_pattern
?
Thanks!
I modified the JSON config file with the correct regex and does not work:
"spectrum_id_pattern": ".*scan=(\\d+)$",
"psm_id_pattern": "\\bscan=(\\d+)\\b"
Or:
"spectrum_id_pattern": ".*scan=(\\d+)$",
"psm_id_pattern": "mzspec.*scan=(\\d+)$"
Hi @widmersimon,
Could you retry with MS²Rescore the latest beta version of MS²Rescore 3.0? You can install it with:
pip install ms2rescore --pre
Matching IDs from the PSM file to the spectrum files is always a bit tricky, as their is no single solution. We tried to streamline the process with v3.0.
Let us know if the issue persists and we'll gladly help you out!
@RalfG thanks! I'll try it and let you know!
@RalfG works like a charm! Thank you very much
That's great to hear! Thank you so much for the update!
Hello
I'm trying to run ms2rescore through the command line with the example dataset available at the ms2rescore repo:
MGF file: https://github.com/compomics/ms2rescore/blob/master/examples/mgf/20161213_NGHF_DBJ_SA_Exp3A_HeLa_1ug_7min_15000_02.mgf.zip
MZID file: https://github.com/compomics/ms2rescore/blob/master/examples/id/msgfplus.mzid
And this config file: config.zip
If run it on Ubuntu 22.04 through this command:
ms2rescore -c config.json -m 20161213_NGHF_DBJ_SA_Exp3A_HeLa_1ug_7min_15000_02.mgf msgfplus.mzid
I get this error. Am I missing some file? Thanks.