Repository navigation
fix(FeatureFinderAlgorithmPicked): swap pattern/trace mz_tolerance assignments (#9247) - #9250
Conversation
…signments (#9247) `updateMembers_()` assigned `mass_trace:mz_tolerance` to `pattern_tolerance_` and `isotopic_pattern:mz_tolerance` to `trace_tolerance_`, the opposite of what the variable names and call sites expect (`pattern_tolerance_` is used in `findIsotope_()` for isotopic-pattern position scoring; `trace_tolerance_` is used in `feature_traces.isValid()` for mass-trace validation). Both parameters share the default value 0.03, which is why the bug stayed latent until users tuned them independently. Also corrects the doxygen comments in the header that documented the buggy mapping. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis change corrects parameter-to-member variable mappings in Changes
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📋 Issue PlannerBuilt with CodeRabbit's Coding Plans for faster development and fewer bugs. View plan used: ✨ 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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
Add missing entries for: - HiGHS LP solver as third LP backend alternative (#9246) - Fix: FeatureFinderAlgorithmPicked mz_tolerance parameter swap (#9247, #9250) Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
Summary
FeatureFinderAlgorithmPicked::updateMembers_()was assigningmass_trace:mz_tolerancetopattern_tolerance_andisotopic_pattern:mz_tolerancetotrace_tolerance_— the opposite of what the variable names and every call site expect.pattern_tolerance_is consumed byfindIsotope_()(isotopic pattern position scoring atFeatureFinderAlgorithmPicked.cpp:1623,1644,1665).trace_tolerance_is consumed byfeature_traces.isValid(seed_mz, trace_tolerance_)for mass-trace validation (:640, :2064) and trace-extension position scores (:323, :334, :1538).0.03, which is why the swap stayed latent — only users who tuned the two tolerances independently were affected, and silently.FeatureFinderAlgorithmPicked.hthat were documenting the buggy mapping.Test plan
cmake --build OpenMS-build -j$(nproc))ctest --test-dir OpenMS-build -R FeatureFinder— existing FFAP tests should still pass since defaults are unchanged.isotopic_pattern:mz_toleranceandmass_trace:mz_toleranceare deliberately set to different values: confirm the trace tolerance now drives mass-trace extension and the pattern tolerance now drives isotope matching.🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes