Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Refactor parsing of precursor data from spectrum files #162

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

RalfG
Copy link
Member

@RalfG RalfG commented Jul 31, 2024

Added

  • 🚸 If observed m/z values are available in the PSM list, always check if PSMs match with spectra

Changed

  • 🚸 Do not continue if precursor info (m/z, RT, or IM) is missing for some PSMs, but not for all. This should not occur, unless something went wrong. Previously such PSMs were simply selectively removed from the dataset.
  • 🔊 Clearer logging while parsing precursor info from spectrum files: Always raise error if a PSM cannot be found in the spectrum files and provide example PSM IDs from both PSM and spectrum file.
  • ♻️ General refactoring of parse_spectra module

- Clearer logging when parsing precursor info from spectrum files
- Always check if PSMs match with spectra based on observed precursor m/z (if available in PSM list)
- Always raise error if not all PSMs can be found in spectrum file(s), before MS²PIP
- Provide example PSM IDs from both PSM and spectrum file when matching fails.
- Move all code to parse_spectra
ms2rescore/feature_generators/maxquant.py Outdated Show resolved Hide resolved
ms2rescore/parse_spectra.py Outdated Show resolved Hide resolved
@RalfG RalfG merged commit 581da04 into main Dec 5, 2024
4 checks passed
@RalfG RalfG deleted the refactor-parse-spectra branch December 5, 2024 11:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants