Skip to content

refactor: share fragment conversion and precursor metrics - #462

Draft
boopthesnoot wants to merge 2 commits into
mainfrom
refactor/shared-fragment-annotation
Draft

boopthesnoot wants to merge 2 commits into
mainfrom
refactor/shared-fragment-annotation

Conversation

@boopthesnoot

Copy link
Copy Markdown
Contributor

Share array-based fragment conversion and precursor metrics with the existing library APIs, so callers can process individual spectra without duplicating calculations or building temporary libraries.

Dense cells retain the strongest peak, with the first input peak winning equal-intensity ties; intensity, error and observed m/z stay associated. Flat peaks are preserved, and conversion supports precursors whose spectra contain no peaks.

Select the strongest peak per dense cell and keep associated values from the same peak. Share array calculations with library conversion and metrics, and support precursor tables whose spectra have no peaks. Validated with 70 targeted tests and AlphaNovo export integration tests.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant