Repository navigation
[FIX] Sanitize NaN MS-GF+ fragment error stdevs - #10382
Conversation
MS-GF+ computes the -addFeatures fragment error standard deviations as sqrt(E[x^2] - mean^2) in single precision; with identical fragment errors the variance rounds below 0 and MS-GF+ writes "NaN". Since #10314 the in-process PercolatorAdapter rejects non-finite features, which broke the quantms TMT tests with OpenMS 3.6.0 (bigbio/quantms#736). The variance is ~0, so addMSGFFeatures now sets these features to 0. Co-authored-by: Copilot App <[email protected]>
|
@copilot resolve the merge conflicts in this pull request |
|
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthrough
ChangesMS-GF+ feature normalization
Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The change handles non-finite MS-GF+ fragment-error standard deviations while preserving finite values and unrelated metadata. No actionable merge-blocking issue remains, subject to normal build and test checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (1 skipped: 1 unsupported.)
✨ 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. A rabbit checks the features with care, Comment |
…percolator-nan-feature # Conflicts: # CHANGELOG Co-authored-by: jpfeuffer <[email protected]>
Merged |
Summary
PercolatorFeatureSetHelper::addMSGFFeatures.MS-GF+ computes these standard deviations as
sqrt(E[x^2] - mean^2)in single precision. When fragment errors are identical, rounding can produce a slightly negative variance and MS-GF+ writesNaN. PercolatorAdapter began rejecting non-finite features in 3.6.0, causing the quantms TMT PERCOLATOR step to fail.Validation
Reproduced the quantms TMT failure with the v3.6.0 container and the test dataset/settings from bigbio/quantms#736. Replacing the two NaN stdev values in the reproduced input with
0.0allowed PercolatorAdapter to complete. The OpenMS change has not yet been compiled or run through the C++ unit test locally.Summary by CodeRabbit