Skip to content

[API,IO,FIX] Preserve Thermo metadata through mzML conversion - #10072

Closed
timosachsenberg wants to merge 2 commits into
OpenMS:developfrom
timosachsenberg:feat/thermo-mzml-metadata-parity
Closed

timosachsenberg wants to merge 2 commits into
OpenMS:developfrom
timosachsenberg:feat/thermo-mzml-metadata-parity

Conversation

@timosachsenberg

Copy link
Copy Markdown
Contributor

Thermo RAW loading currently loses metadata needed for comparable mzML output to ThermoRawFileParser. This consumes bridge 0.3.0 snapshots and carries source, sample, method, trailer, precursor and instrument metadata through OpenMS's data model and mzML reader/writer. Optional exports include native charges, independent 64-bit noise grids, PDA spectra and detector chromatograms.

The change adds reader options and Python bindings, additional instrument configurations with scan references, MSn/SPS hierarchy reconstruction, distinct selected-ion/isolation targets, supplemental activation, correct array types and units, and preservation of full timestamps and XML attribute whitespace.

A second review fixed zero precursor intensity export, editable isolation offsets, SPS intensity semantics, unexpected supplemental activation, acquisition representation and FID classification.

Paired bridge PR: OpenMS/openms-thermo-bridge#11. Both dependency paths pin its published commit 4c0edddf5a49879e0470b0ca08cfe9955ceba3c9. The vcpkg overlay uses a verified SHA-512 source archive and builds matching managed sources with a host .NET SDK; it does not require an unreleased 0.3.0 binary asset.

Validation: standalone precursor tests pass; changed core files and class tests pass C++23 syntax checks. Bridge and CV suites pass 136 cases, with four fixture-related skips. The low-resolution centroid regression fails before the bridge fix and passes on both TRFP small.RAW and small2.RAW afterward. The nethost patch applies to the bridge source, and the downloaded archive's files match the published bridge commit. The published OpenMS tree matches the reviewed local tree.

OpenMS was not built or linked because AGENTS.md requires an explicit build request. Synthetic mzML round-trip tests, RAW integration tests and Python API tests are included but require runtime execution in CI/an authorized build. End-to-end parity with TRFP output is not yet verified; float32 intensity storage, software records, time units and XML layout can differ.

The comparison reference is ThermoRawFileParser commit cf548e4a3fadcc796291a01fdbd088af986a5d72.

Consume the Thermo bridge metadata snapshots and preserve source/sample/method,
scan, precursor, instrument and auxiliary detector information through mzML.
Add configurable native charge/noise/PDA exports, instrument configurations,
MSn/SPS reconstruction, Python options and regression coverage.

Address the second review's precursor intensity, isolation-offset, supplemental
activation and acquisition-representation cases. Pin native and managed bridge
sources to published revision 4c0edddf5a49879e0470b0ca08cfe9955ceba3c9;
use its verified archive checksum in the vcpkg overlay.

Bridge and standalone precursor tests pass; core and class-test syntax checks
pass. Full OpenMS round-trip and Python runtime validation remain CI gates.

Copy link
Copy Markdown
Contributor Author

Superseded by #10077, which carries these two commits merged with develop plus the review fixes (byte-compatible mzML output, wheel build/import fixes, EThcD/ETciD mapping kept, and a precursor-hierarchy fix for same-order master scans). See that PR's description for details.


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Closing in favour of #10077, which contains this work rebased onto develop with the CI and review fixes applied. No further changes will land here.


Generated by Claude Code

timosachsenberg pushed a commit that referenced this pull request Sep 9, 2026
- Cite #10092, #10099 and #10101, whose CHANGELOG entries were added
  without a PR number at authoring time.
- Fix the Thermo mzML metadata entries, which cited #10072 (closed,
  never merged) instead of #10077, the PR that actually superseded and
  merged it; also cite #10079, which completed the openms-thermo-bridge
  0.3.0 pin.
- Cite #10070 for the three CHANGELOG entries it added (pyOpenMS wheel
  Thermo RAW support) that were missing a PR reference.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012hjhKYp1CdQK621UQm5uQ6
timosachsenberg added a commit that referenced this pull request Sep 10, 2026
- Cite #10092, #10099 and #10101, whose CHANGELOG entries were added
  without a PR number at authoring time.
- Fix the Thermo mzML metadata entries, which cited #10072 (closed,
  never merged) instead of #10077, the PR that actually superseded and
  merged it; also cite #10079, which completed the openms-thermo-bridge
  0.3.0 pin.
- Cite #10070 for the three CHANGELOG entries it added (pyOpenMS wheel
  Thermo RAW support) that were missing a PR reference.


Claude-Session: https://claude.ai/code/session_012hjhKYp1CdQK621UQm5uQ6

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit that referenced this pull request Sep 11, 2026
…rsor-hierarchy fix (#10095)

PR #10072 (the original Thermo metadata-preservation PR) was closed
unmerged, superseded by #10077 which was the PR actually merged into
develop. Point the two existing changelog entries at #10077 instead,
and add the openms-thermo-bridge v0.3.0 tag update (#10079). Also
document a real fix that shipped only in #10077's review pass: a
Master Scan Number pointing at a same-order sibling scan caused every
ETD scan in a mixed-activation Thermo run to be reported as plain HCD
with no supplemental activation.


Claude-Session: https://claude.ai/code/session_0193GREsEgm8mEYbyzaXG19m

Co-authored-by: Claude <[email protected]>
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