Repository navigation
feat(ProSE): Orbitrap-aware isotope defaults + isotope_error Percolator feature - #9188
Conversation
…or feature Two small improvements inspired by MetaMorpheus / MSFragger defaults: 1. Default precursor isotope error range changed from [-1, +1] to [0, +2]. Orbitrap/QExactive/tims monoisotopic peak picking fails predominantly upward — symmetric ranges waste a query slot on the rare downward mispick. Same number of FI queries per spectrum, better coverage of the real failure mode. 2. isotope_error is now exposed as a Percolator feature. The metavalue was already set on every PSM but was missing from extra_features. Lets the SVM/ML rescorer discount PSMs that only matched at non-zero iso offsets. Free FDR gain. Also switched two string literals to Constants::UserParam::ISOTOPE_ERROR for consistency. Test fixtures updated for the new extra_features string; top PSMs in the reference data were all at iso=0, so PSM identities are unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
📝 WalkthroughWalkthroughThis PR adjusts isotope error handling by shifting default precursor isotope error bounds in 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 docstrings
🧪 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp (1)
176-178:⚠️ Potential issue | 🟠 MajorAlign ProSEAlgorithm’s isotope defaults with FragmentIndex.
Line 177 and Line 178 still register
[-1, +1]. Since ProSE passesgetParameters()intoFragmentIndex, these defaults override the newFragmentIndexconstructor defaults and the ProSE tool will not actually default to[0, +2].🐛 Proposed fix
- // Precursor isotope error handling - defaults_.setValue("precursor:isotope_error_min", -1, "Minimum allowed precursor isotope error"); - defaults_.setValue("precursor:isotope_error_max", 1, "Maximum allowed precursor isotope error"); + // Default iso range [0, +2]: Orbitrap/QExactive/tims monoisotopic peak picking + // fails predominantly upward. + defaults_.setValue("precursor:isotope_error_min", 0, "Minimum allowed precursor isotope error"); + defaults_.setValue("precursor:isotope_error_max", 2, "Maximum allowed precursor isotope error");🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp` around lines 176 - 178, ProSEAlgorithm still sets precursor:isotope_error_min/max to [-1, +1], which overrides FragmentIndex defaults; change the defaults in ProSEAlgorithm (the calls to defaults_.setValue("precursor:isotope_error_min", ...) and defaults_.setValue("precursor:isotope_error_max", ...)) to 0 and 2 respectively so that when ProSE passes getParameters() into FragmentIndex the effective default range becomes [0, +2] consistent with FragmentIndex's intended defaults.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp`:
- Around line 176-178: ProSEAlgorithm still sets precursor:isotope_error_min/max
to [-1, +1], which overrides FragmentIndex defaults; change the defaults in
ProSEAlgorithm (the calls to defaults_.setValue("precursor:isotope_error_min",
...) and defaults_.setValue("precursor:isotope_error_max", ...)) to 0 and 2
respectively so that when ProSE passes getParameters() into FragmentIndex the
effective default range becomes [0, +2] consistent with FragmentIndex's intended
defaults.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c6deccec-424f-465f-8872-2022782e1f50
📒 Files selected for processing (5)
src/openms/source/ANALYSIS/ID/FragmentIndex.cppsrc/openms/source/ANALYSIS/ID/ProSEAlgorithm.cppsrc/tests/topp/ProSE_1_out.idXMLsrc/tests/topp/ProSE_2_out.idXMLsrc/tests/topp/ProSE_4_out.idXML
Add missing changelog entries for PRs merged after 2026-04-19 sync: - #9186: MascotGenericFile SEQ= field support (read/write) - #9188: ProSE Orbitrap-aware isotope defaults [0,+2] + isotope_error Percolator feature - #9191: ProSE SNES mother-peptide indexing for non-specific searches Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
Restore ProSE/FragmentIndex/File entries dropped by the FeatureFinderCentroided reorganization commit (#9159) and add new entries for commits merged after the last sync: - #9188: ProSE BREAKING: default isotope error range changed to [0,+2] - #9191: ProSE SNES mother-peptide indexing for non-specific searches - #9195: ProSE fix: defer PSM FDR when Percolator enabled; valid .pin output - #9203: FragmentIndex: fixed bucket_size 4096 for tighter candidate lists - #9204: ProSE: resolve PercolatorAdapter via findSiblingTOPPExecutable - #9205: ProSE: per-file output isolation + dangling decoy ref crash fix - #9207: File::rename: cross-device fallback (copy+remove on EXDEV) Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
Summary
Two small, independent improvements inspired by MetaMorpheus / MSFragger defaults:
[-1, +1]→[0, +2]. Orbitrap/QExactive/tims monoisotopic peak picking fails predominantly upward; symmetric ranges waste a query slot on the rare downward mispick. Same number of FI queries per spectrum, better coverage of the real failure mode.isotope_erroris now a Percolator feature. The metavalue was already set on every PSM but was missing fromextra_features. Lets the SVM/ML rescorer discount PSMs that only matched at non-zero iso offsets — free FDR gain.Constants::UserParam::ISOTOPE_ERROR.Test plan
FragmentIndex_test,ProSEAlgorithm_test— passTOPP_ProSE_*(including the three long DDA integration tests) — passextra_featuresstring only; top PSM identities unchanged (all reference top hits were already at iso=0).🤖 Generated with Claude Code
Summary by CodeRabbit