Skip to content

Conversation

@ArthurDeclercq
Copy link
Contributor

This pull request introduces a new function to the core processing workflow of the ms2pip package, enabling direct handling of PSMs (peptide-spectrum matches) that already have attached MS2Spectrum objects. Additionally, it makes necessary imports and updates the package's public API to expose this new functionality.

New processing function for pre-attached spectra:

  • Added the process_MS2_spectra function to core.py, allowing users to process PSMs with pre-attached MS2Spectrum objects, including spectrum extraction, prediction, and optional correlation computation. This function streamlines workflows where spectra are already parsed and available in memory.

API and import updates:

  • Imported MS2Spectrum from ms2rescore_rs in core.py to support the new processing function.
  • Added process_observed_spectra to the package's public API in __init__.py, making the new processing capability accessible to users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants