Thiele-Palsson score mapping + verified ECO ids - #80
Merged
Conversation
edkerk
force-pushed
the
feat/confidence-wire-facets
branch
from
July 18, 2026 22:07
1023acc to
cb9e529
Compare
Add thiele_palsson_score(reaction): the Thiele & Palsson reconstruction confidence score (0-4) derived from the gene_association facet's basis (gpr+literature -> 3, gpr -> 2, no-gpr -> 1), the facet that captures reaction-inclusion evidence. Grounded in the correspondences already asserted in score_gene_association_confidence. Respects the study doc's two cautions: the map runs forward only (basis -> score), so the ambiguous Thiele-Palsson 2 is never reverse-mapped to an evidence class, and curated is left unmapped (a curator's assertion does not name its evidence class). The ECO evidence-class ids in §9 were each verified against EBI's ECO (OLS) - ECO:0000044 sequence similarity, ECO:0000015 mutant phenotype, ECO:0000002 direct assay - and the assertion-method term ECO:0000305 is explicitly excluded as it is not an evidence class. Docs: §9 gains the concrete basis -> score -> ECO table; §10.3 marked mapping-shipped. Tests for the mapping and the end-to-end basis path.
edkerk
force-pushed
the
feat/confidence-thiele-palsson
branch
from
July 18, 2026 22:24
84e41d8 to
5926c96
Compare
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.
Maps the confidence facets onto the field's standard vocabulary — the Thiele & Palsson reconstruction score and ECO evidence terms — so the confidence record is interoperable rather than bespoke.
Changes
thiele_palsson_score(reaction) -> int | None— the Thiele & Palsson reconstruction confidence score (0–4), derived from thegene_associationfacet'sbasis:gpr+literature→ 3,gpr→ 2,no-gpr→ 1. It maps from the evidencebasis, not from a support-strengthlevel. The map runs forward only, so the ambiguous Thiele-Palsson 2 is never reverse-mapped to an evidence class, and acuratedcall (which names no evidence class) maps toNone.ECO:0000044(sequence similarity),ECO:0000015(mutant phenotype),ECO:0000002(direct assay).ECO:0000305("curator inference used in manual assertion") is flagged as an assertion method, not an evidence class.