Add iLIS interface score (sqrt(LIS × cLIS), AFM-LIS)#16
Merged
Conversation
iLIS (Kim et al., AFM-LIS; github.com/flyark/AFM-LIS) is the geometric
mean of LIS and its contact-restricted variant cLIS:
cLIS = the LIS PAE transform (12-PAE)/12 averaged only over residue
pairs that are also in direct contact (representative atom
CB-else-CA within contact_thresh; default 8 A == AFM-LIS Cb-Cb 8 A)
iLIS = sqrt(LIS * cLIS)
The geometric mean zeroes the score unless an interface has both broad
PAE confidence (LIS) and confident direct contacts (cLIS). cLIS reuses the
existing Interface contact set, so no new geometry is introduced; both
chain directions are averaged, mirroring lis().
Adds Interface.clis()/ilis(), emits interface_cLIS / interface_iLIS in the
per-run CSV next to interface_LIS, and adds a deterministic unit test.
Validated against the official AFM-LIS lis.py on benchmark dimers
(LIS/cLIS/iLIS agree to 4 decimal places).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the iLIS interface score (integrated Local Interaction Score; Kim et al., AFM-LIS — github.com/flyark/AFM-LIS) to AlphaJudge.
iLIS = √(LIS × cLIS), where:(12 − PAE)/12confidence transform averaged over inter-chain residue pairs with PAE < 12 Å.contact_thresh; default 8 Å, matching AFM-LIS's Cβ–Cβ ≤ 8 Å).cLIS reuses the existing
Interfacecontact set (_pairs), so no new geometry/IO is introduced. Both chain directions are averaged, mirroring the existinglis().Changes
src/alphajudge/interface.py: newInterface.clis()andInterface.ilis().src/alphajudge/runner.py: emitinterface_cLISandinterface_iLISin the per-run CSV (next tointerface_LIS).test/test_parsers_and_runner.py: add both columns to the expected output schema + a deterministictest_clis_ilis_math_is_deterministic.Validation
Cross-checked against the official AFM-LIS
lis.pyon benchmark dimers — LIS, cLIS and iLIS agree to 4 decimal places:(official vs AlphaJudge identical at 4 dp; cLIS differs only ~2e-5, from the strict
<8 Åvs inclusive≤8 Åcontact boundary.)Not added to the frozen interface metascore — kept as a standalone score.
🤖 Generated with Claude Code