Repository navigation
fix: mark Bruker TDF spectra as CENTROID so downstream tools accept them - #9154
Conversation
|
@jonasscheid The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-04-15 13:56:54.232246981 +0000
+++ AUTHORS.new 2026-04-15 13:56:59.248090854 +0000
@@ -58,6 +58,7 @@
- Johannes Veit
- Johannes von Kleist
- Johan Teleman
+ - jonasscheid
- Joshua Charkow
- Juliane Schmachtenberg
- Julianus Pfeuffer |
📝 WalkthroughWalkthroughAdded explicit CENTROID type labeling to MSSpectrum objects generated from TDF/TIMS data across multiple construction paths in BrukerTimsFile, including frame conversion and DIA MS2 spectrum creation. Corresponding test assertions validate the spectrum type metadata. Changes
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
good catch! thanks |
timosachsenberg
left a comment
There was a problem hiding this comment.
I will need to check if all other paths (e.g. DIA) correctly annotate this
|
Yes please, I only tested with DDA file |
|
looks good |
Add three missing entries for changes merged after the 2026-04-15 sync: - #9154: BrukerTimsFile spectra marked as CENTROID - #9148/#9147: system opentims install fallback before FetchContent - #9151: Bruker DIA MS2 centroiding without denoising (min_support=0) Co-authored-by: Copilot <[email protected]>
Add three missing entries for changes merged after the 2026-04-15 sync: - #9154: BrukerTimsFile spectra marked as CENTROID - #9148/#9147: system opentims install fallback before FetchContent - #9151: Bruker DIA MS2 centroiding without denoising (min_support=0) Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
@timosachsenberg does https://github.com/OpenMS/OpenMS/pull/9152/changes fixes this issue already?
Summary
BrukerTimsFilecurrently writes TDF spectra intoMSExperimentwithout settingSpectrumSettings::SpectrumType, so spectra default toUNKNOWN. When the experiment is written to mzML, only the parent CV termMS:1000525("spectrum representation") is emitted and not the childMS:1000127("centroid spectrum") /MS:1000128("profile spectrum").CometAdapter— reject the mzML withProfile data provided but centroided MS2 spectra requiredand force users to add-force(which taints results).CENTROID. This PR sets the type in the five spectrum-emission paths so the CV term lands correctly in the mzML.Changes
src/openms/source/FORMAT/BrukerTimsFile.cpp: addspec.setType(SpectrumSettings::SpectrumType::CENTROID)in:frameToSpectrum(raw MS1 / MS2 vialoadFrames_)src/tests/class_tests/openms/source/BrukerTimsFile_test.cpp: addTEST_EQUAL(spec.getType(), CENTROID)in the DDA loading, DDA frame-level, and DIA loading integration tests, mirroring the existing MS1 CENTROID assertion in the DDA MS1 centroiding test.Test plan
BrukerTimsFile_test— all 22 sections pass locally withENABLE_OPENTIMS_TESTS=ON(exit 0).FileConverterrun on a real timsTOF.dfile produces mzML whose MS2 spectra now carry<cvParam accession=\"MS:1000127\" name=\"centroid spectrum\"/>.CometAdapteraccepts it without-force.Summary by CodeRabbit
Bug Fixes & Tests
Bug Fixes
Tests