Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Refactor parsing of precursor data from spectrum files #162

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant