Repository navigation
import: 22 HP terms for Open Targets Safety 2.0 (#2817) - #2822
Conversation
Adds the 22 requested HP IRIs to iri_dependencies/hp_terms.txt and regenerates the HP import. The regeneration also refreshed the HP mirror, so the import picks up upstream HP changes beyond the 22 new terms - most visibly the removal of ~4600 UMLS/SNOMEDCT_US hasDbXref annotations that are no longer distributed upstream. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01UXj5XoTCgsSuiUVwZZB5tV
|
(Carried over verbatim from #2821, which this PR supersedes — the committed
|
| Annotation | Count removed |
|---|---|
oboInOwl:hasDbXref → UMLS: |
2909 |
oboInOwl:hasDbXref → SNOMEDCT_US: |
1697 |
oboInOwl:hasDbXref → HPO_CONTRIBUTOR: |
3 |
oboInOwl:inSubset |
371 |
oboInOwl:hasExactSynonym |
40 |
rdfs:subClassOf |
30 |
reified owl:Axiom blocks |
14 |
rdfs:label |
3 |
Example — HP:0000011 Neurogenic bladder loses three xrefs:
- <oboInOwl:hasDbXref>SNOMEDCT_US:397732007</oboInOwl:hasDbXref>
- <oboInOwl:hasDbXref>SNOMEDCT_US:398064005</oboInOwl:hasDbXref>
- <oboInOwl:hasDbXref>UMLS:C0005697</oboInOwl:hasDbXref>PMID (709), MEDDRA (44), NCIT (17), ICD (15), MP (10) and other xref prefixes are unaffected — the removal is confined to UMLS: and SNOMEDCT_US:, which is consistent with upstream HP dropping the UMLS-derived mappings rather than with anything this PR did.
Additions beyond the 22 terms (also upstream): 99 exact synonyms, 51 subClassOf, 47 owl:Axiom, 27 hasSynonymType, 12 rdfs:comment. Net class count 2526 → 2548, i.e. exactly the 22 requested terms.
What needs a decision. If any downstream EFO consumer relies on UMLS or SNOMEDCT_US xrefs reaching them through hp_import.owl, merging this drops ~4600 of those mappings in one go. Options:
- Merge as-is — accept the upstream HP 2026-09-01 state; the xrefs are gone upstream and EFO should track that.
- Split — land the 22 terms against the previous mirror, and handle the HP version bump in its own PR so the xref loss is reviewed on its own merits.
It is left as option 1, since regenerating against the current mirror is the documented procedure and pinning the old mirror would be a deliberate deviation. Happy to redo it as option 2 if the mapping loss is a problem for Open Targets or any other consumer.
🤖 Generated with Claude Code
Update: the xref question above is resolved by EFO 3.94.0 — this branch is now master-mergedThe concern raised in the previous comment no longer applies to this PR. EFO 3.94.0 ( So "option 1" (track the upstream HP 2026-09-01 state) is already in effect on
The 23 deleted lines are not losses. They are MIREOT/SLME re-parenting caused by the new seed terms entering the extracted module. For example, HP:0011443 Abnormality of coordination is one of the 22 requested terms, so classes that previously attached to its parent now attach to it directly: <owl:Class rdf:about="http://purl.obolibrary.org/obo/HP_0001251"> <!-- Ataxia -->
- <rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/HP_0011442"/>
+ <rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/HP_0011443"/>The same applies to HP:0001350 Slurred speech and a handful of others; the remainder is reordering of two The merge changed nothing in the three files versus the pre-merge commit 🤖 Generated with Claude Code |
Summary
Imports the 22 HP terms requested in #2817 for the Open Targets Safety 2.0 project. The IRIs were added to
src/ontology/iri_dependencies/hp_terms.txtand the HP import was regenerated. No changes toefo-edit.owl— all terms sit under the existing HP hierarchy, which already places them beneath EFO:0000651phenotypeas requested in the ticket, so nosubclasses.csventry was needed.No new EFO terms are created by this PR, so there are no temporary
EFO_099xxxxIDs.Changes
Files touched:
src/ontology/iri_dependencies/hp_terms.txt— 22 IRIs added (hand-edited source list)src/ontology/imports/hp_terms.txt,src/ontology/imports/hp_import.owl— regenerated, not hand-editedClass count in the import: 2526 → 2548.
⚠️ Reviewer note: this diff is larger than 22 terms— superseded by EFO 3.94.0Resolved. This PR originally showed +746 / −5161 on
hp_import.owlbecause the regeneration refreshed the HP mirror to the 2026-09-01 HP release, dropping ~4600UMLS:/SNOMEDCT_US:xrefs. EFO 3.94.0 (1999a901) has since made that exact removal onmasteritself (+119 / −5138), so it is no longer part of this PR's diff and needs no separate decision.masteris now merged into this branch (4859731b). The diff is +627 / −23 onhp_import.owlplus 22 lines in eachhp_terms.txt— the 22 requested terms, plus expected MIREOT re-parenting onto the newly-imported HP:0011443. See the follow-up comment below for the breakdown.Checks
iri_dependencies→make imports/hp_import.owlroute; no hand-edited files underimports/hp_import.owlbyte-for-byteefo-edit.owluntouched — no reasoning or normalization impactmaster, so no decision is pending hereCloses #2817
🤖 Generated with Claude Code