Skip to content

import: 22 HP terms for Open Targets Safety 2.0 (#2817) - #2822

Merged
ar-ibrahim merged 2 commits into
masterfrom
issue-2817-efo3
Sep 22, 2026
Merged

ar-ibrahim merged 2 commits into
masterfrom
issue-2817-efo3

Conversation

@jamesamcl

@jamesamcl jamesamcl commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Remake of #2821. That PR was branched from the pre-reset master and would have reintroduced the owlmake build-system migration (which now lives on efo-4 only) into the EFO 3 line. This PR carries the identical import commit, cherry-picked onto the reset master. hp_import.owl was rebuilt from a fresh HP mirror with the EFO 3 Makefile pipeline (make imports/hp_import.owl) and came out byte-identical to the committed file, so the content is exactly what the ODK route produces.

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.txt and the HP import was regenerated. No changes to efo-edit.owl — all terms sit under the existing HP hierarchy, which already places them beneath EFO:0000651 phenotype as requested in the ticket, so no subclasses.csv entry was needed.

No new EFO terms are created by this PR, so there are no temporary EFO_099xxxx IDs.

Changes

Action Term ID Parent Source ontology
Imported Nocturia HP:0000017 inherited from HP HP
Imported Renal agenesis HP:0000104 inherited from HP HP
Imported Retinopathy HP:0000488 inherited from HP HP
Imported Blepharospasm HP:0000643 inherited from HP HP
Imported Oligohydramnios HP:0001562 inherited from HP HP
Imported Torsade de pointes HP:0001664 inherited from HP HP
Imported Renal tubular acidosis HP:0001947 inherited from HP HP
Imported Gastroesophageal reflux HP:0002020 inherited from HP HP
Imported Hyperglycinemia HP:0002154 inherited from HP HP
Imported Intracranial hemorrhage HP:0002170 inherited from HP HP
Imported Myoglobinuria HP:0002913 inherited from HP HP
Imported Prolonged partial thromboplastin time HP:0003645 inherited from HP HP
Imported Abnormality of coordination HP:0011443 inherited from HP HP
Imported Acute infectious pneumonia HP:0011949 inherited from HP HP
Imported Sinoatrial block HP:0012723 inherited from HP HP
Imported Invasive fungal infection HP:0020101 inherited from HP HP
Imported Folliculitis HP:0025084 inherited from HP HP
Imported Decreased serum zinc HP:0031831 inherited from HP HP
Imported Hypoesthesia HP:0033748 inherited from HP HP
Imported Enteroviral encephalitis HP:0034285 inherited from HP HP
Imported Scaling skin HP:0040189 inherited from HP HP
Imported Hypercoagulability HP:0100724 inherited from HP HP

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-edited

Class count in the import: 2526 → 2548.

⚠️ Reviewer note: this diff is larger than 22 terms — superseded by EFO 3.94.0

Resolved. This PR originally showed +746 / −5161 on hp_import.owl because the regeneration refreshed the HP mirror to the 2026-09-01 HP release, dropping ~4600 UMLS:/SNOMEDCT_US: xrefs. EFO 3.94.0 (1999a901) has since made that exact removal on master itself (+119 / −5138), so it is no longer part of this PR's diff and needs no separate decision.

master is now merged into this branch (4859731b). The diff is +627 / −23 on hp_import.owl plus 22 lines in each hp_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

  • Import done via the iri_dependencies → make imports/hp_import.owl route; no hand-edited files under imports/
  • All 22 IDs verified present in the regenerated import with the labels listed in the ticket
  • Rebuild under the EFO 3 Makefile (odkfull image) reproduces the committed hp_import.owl byte-for-byte
  • efo-edit.owl untouched — no reasoning or normalization impact
  • Upstream xref removal: resolved — EFO 3.94.0 made the same removal on master, so no decision is pending here

Closes #2817

🤖 Generated with Claude Code

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
@jamesamcl

Copy link
Copy Markdown
Member Author

(Carried over verbatim from #2821, which this PR supersedes — the committed hp_import.owl is identical.)

⚠️ Heads-up: bulk removal of UMLS / SNOMEDCT_US xrefs from hp_import.owl

This PR's stated purpose is the 22 HP terms from #2817, but imports/hp_import.owl shows 746 added / 5161 removed lines. Almost none of that is the new terms. Flagging it explicitly so the diff size isn't mistaken for an error.

Cause. The import was regenerated against a refreshed HP mirror (the 2026-09-01 HP release, http://purl.obolibrary.org/obo/hp/releases/2026-09-01/hp.owl). The import therefore carries every upstream HP change since the mirror was last refreshed, not just the requested terms.

Removed annotations (all upstream, none hand-edited):

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:

  1. Merge as-is — accept the upstream HP 2026-09-01 state; the xrefs are gone upstream and EFO should track that.
  2. 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

@ar-ibrahim

Copy link
Copy Markdown
Collaborator

Update: the xref question above is resolved by EFO 3.94.0 — this branch is now master-merged

The concern raised in the previous comment no longer applies to this PR. EFO 3.94.0 (1999a901, 2026-09-15) regenerated imports/hp_import.owl on master in its own right, with +119 / −5138 — that is the same bulk removal of UMLS: / SNOMEDCT_US: xrefs. master now carries 0 UMLS: and 0 SNOMEDCT_US: xrefs in hp_import.owl.

So "option 1" (track the upstream HP 2026-09-01 state) is already in effect on master, decided by the release rather than by this PR. There is no separate maintainer decision left here, and nothing to split out.

master has been merged into this branch (4859731b). The rendered diff is now:

File Diff
src/ontology/imports/hp_import.owl +627 / −23
src/ontology/imports/hp_terms.txt +22 / −0
src/ontology/iri_dependencies/hp_terms.txt +22 / −0

owl:Class count 2526 (master) → 2548 — exactly the 22 requested terms, each present once.

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 owl:Axiom blocks.

The merge changed nothing in the three files versus the pre-merge commit ff63c8d0, so the byte-identical-rebuild check in the PR description still holds as stated. efo-edit.owl remains byte-identical to master; robot convert on the import is clean.

🤖 Generated with Claude Code

@ar-ibrahim
ar-ibrahim merged commit 550a1ed into master Sep 22, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Import] Request to import HP terms for Open Targets Safety 2.0 project

2 participants