Repository navigation
[TEST] IsoelectricPoint: add a numeric check for the SILLERO scale (#9460) - #9542
Conversation
…penMS#9460) IsoelectricPoint_test had numeric checks for the LEHNINGER, EMBOSS and BJELLQVIST scales, but the SILLERO scale was never exercised. Adds a reference-free self-consistency section for SILLERO (no external tool needed): the net charge spans zero across the pH range (positive at pH 1, negative at pH 14), the computed pI lies in the searched [0,14] interval, the net charge at the pI is ~0 (the definition of the isoelectric point), and SILLERO's distinct pKa table yields a pI different from the default Lehninger scale. Verified: builds clean and the test runs PASSED (SILLERO pI 4.151 vs Lehninger 3.830; charge at pI ~ -1.6e-5). Co-Authored-By: Claude Opus 4.8 <[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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughA new ChangesSILLERO Scale Test Coverage
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. ✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/tests/class_tests/openms/source/IsoelectricPoint_test.cpp`:
- Around line 146-147: The TEST_EQUAL macro calls are missing statement
terminators (semicolons), which will cause compilation errors. Add a semicolon
at the end of each TEST_EQUAL macro invocation on lines 146, 147, 151, 152, 157,
and 161 in the IsoelectricPoint_test.cpp file to match the expected syntax for
test macro usage throughout the rest of the file.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: cccede9a-5a9e-4f4d-90b5-b696a1318ebb
📒 Files selected for processing (1)
src/tests/class_tests/openms/source/IsoelectricPoint_test.cpp
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-15 17:41:47.074211769 +0000
+++ AUTHORS.new 2026-06-15 17:41:52.325845697 +0000
@@ -23,8 +23,8 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
# Conflicts: # src/tests/class_tests/openms/source/IsoelectricPoint_test.cpp
|
Adversarial review result: I did not find a blocking issue in this test-only change. The IsoelectricPoint SILLERO invariant coverage is narrowly scoped and does not alter runtime behavior. No source/test comments with tracker-style issue references stood out in this diff. I did not run the tests locally. |
What
Adds an
IsoelectricPoint_testsection pinning the SILLERO pKa scale with reference-free self-consistency invariants:[0,14]interval;computeCharge(seq, computePI(seq, SILLERO), SILLERO) ≈ 0);Why
Closes the §7
[AUTO]task in the OpenMS 3.6.0 pre-release testing plan (#9460):IsoelectricPoint_testhad numeric checks for LEHNINGER, EMBOSS and BJELLQVIST, but SILLERO was never exercised at all (confirmed by grepping the test). Rather than hard-code an externalpepstats/Expasy reference value (not available here, and brittle), I pinned the scale with the definitional invariant — pI is the pH where net charge is zero — which is reference-free and directly validates that SILLERO's pKa table is wired up and internally consistent. The cross-scale inequality guards against SILLERO silently falling back to Lehninger.Test plan
Tests only — no production code changed. Verified locally:
-fsyntax-onlyclean, full build green, test runs PASSED. At runtime SILLERO gives pI4.151(vs Lehninger3.830) with net charge≈ -1.6e-5at the pI — confirming the scale is implemented and self-consistent.Part of #9460. Follows #9524 … #9541.
🤖 Generated with Claude Code
Summary by CodeRabbit