Repository navigation
[FIX] ProSE: remove only peaks without intensity before normalization - #10377
Conversation
ProSE's MS2 preprocessing ran the ThresholdMower with its class default, an absolute intensity cutoff of 0.05, before normalizing to a base peak of 1. On intensity-scaled input (spectra already normalized, or otherwise small intensities) that silently deleted every peak below 5% of the base peak. The cutoff now removes only peaks without intensity (zero or negative); every positive float intensity, subnormal ones included, is kept. Standalone version of #10368 on develop (previously stacked on #10335). Adds the positive-intensity and search scale-invariance regression tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01D1N3pC2AqJt57Q3v87bWxz
|
CI note: Update, 13:25 UTC: the one re-run (attempt 2, job 110388280006) also failed before any OpenMS code was compiled, this time with a different external error. Inside the container, the vcpkg bootstrap's download of Why this is not this PR:
I won't re-run it again. A maintainer re-run of the failed job, or the next push to this branch, will retry it. Generated by Claude Code |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughProSE now removes zero and negative MS2 intensities before normalization while retaining positive intensities below 0.05. New tests check peak retention and compare search results for original and intensity-scaled spectra. ChangesProSE intensity preprocessing
Suggested reviewers: Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to The change preserves representable positive ProSE peak intensities, and no material merge-blocking behavior is established in the supplied context. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
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. A rabbit checks each peak with care Comment |
Resolves the conflict with #10377 in ProSEAlgorithm_test.cpp (both sides add test sections at the same place; both are kept) and merges the two ProSE CHANGELOG blocks of 3.7.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01D1N3pC2AqJt57Q3v87bWxz
Description
Standalone version of #10368, rebased onto
develop. #10368 is stacked oncodex/native-cid(#10335). This PR contains only the #10368 change and does not depend on #10335. It is the same source change as #10368's latest head (d21f55b), including thefloat::denorm_min()follow-up. It was cherry-picked from the prepared develop commit4fba64c7.What changes
ProSE's MS2 preprocessing ran
ThresholdMowerwith its class default: an absolute intensity cutoff of 0.05, applied before normalising to a base peak of 1. On raw Orbitrap/timsTOF counts this removes nothing. On intensity-scaled input (spectra already normalised to a base peak of 1, or otherwise small intensities) it silently deleted every peak below 5% of the base peak before scoring.The cutoff now removes only peaks without intensity (zero or negative, e.g. empty centroids), because those would still count as matched ions. Every positive float intensity, subnormal ones included, is kept. The window and top-N filters are unchanged.
Tests
ProSEAlgorithm_test:Verification on this branch
3.7.0.dev20261001, built frome25ac61.HyperScore_test,FragmentIndex_testandProSEAlgorithm_testpass (3/3).ProSEAlgorithm::search()with the tests' INI and command-lineSearch:*parameters. The output idXML is identical todevelop, so no reference changes are needed. Thedevelopreplay reproduces the checked-in references exactly: search parameters and hits.Benchmark vs. develop (20-file suite of #10364)
Frozen 20-file suite of #10364: 8,000 DDA MS2 per file, the same FASTAs, Percolator 3.09.0 seeds 1/42/137, target PSMs at q ≤ 0.01. Each count is the mean over seeds within a file, then over files within a group. Each arm differs from
developf5ea2d04only by this PR and the setting named; other PRs are never stacked on it.The algorithms are compiled from this branch against pyOpenMS nightly
3.7.0.dev20261001support code; this is a native harness, not a full TOPP build. Scripts, parameters, logs and per-seed results: supplement, ZIP`` (SHA256650b8732602c76b038d2907b8be26bc469c6a50231424c2a58de33e60df04dea). Combined comparison: #10364.The normalized Percolator input is byte-identical to
developon all 20 files: raw intensities never fall below the old 0.05 cutoff.Intensity-scale control (same derived inputs as on 2026-09-30): every spectrum is scaled by a power of two so its base peak lies in [1,2), preserving m/z, RT, precursors and scan IDs.
On the scaled inputs
developloses 15% (Velos CID) and 5% (TMTpro) of its identifications; this PR gives exactly the unscaled result.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01D1N3pC2AqJt57Q3v87bWxz
Generated by Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation