Skip to content

Import 33 MONDO terms for Open Targets Safety 2.0 (refs #2818) - #2823

Merged
ar-ibrahim merged 3 commits into
masterfrom
issue-2818-efo3
Sep 21, 2026
Merged

ar-ibrahim merged 3 commits into
masterfrom
issue-2818-efo3

Conversation

@jamesamcl

@jamesamcl jamesamcl commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Remake of #2820. 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 same three commits, cherry-picked onto the reset master, with uberon_import.owl verified to rebuild byte-identically under the EFO 3 Makefile pipeline. Build-system references below have been updated from owlmake to the EFO 3 (ODK/Makefile) reality; the ontology content is unchanged.

Summary

Imports 33 of the 34 MONDO disease terms requested in #2818 for the Open Targets Safety 2.0 project's data annotation work, plus two follow-on fixes the import made necessary: importing UBERON:0002017 portal vein (referenced by MONDO:0001339 via disease has location, which would otherwise be a label-less dangling class once the MONDO module is rebuilt) and obsoleting native EFO_0006835 pyoderma gangrenosum in favour of the incoming MONDO:0018824, which carries the same label.

One term was deliberately omitted: MONDO:0003634 proteinuria. See Notes below.

Changes

File Change
src/ontology/iri_dependencies/mondo_terms.txt +33 MONDO IRIs
src/ontology/imports/mondo_terms.txt +34 (derived seed list, regenerated)
src/ontology/iri_dependencies/uberon_terms.txt +1 (UBERON:0002017 portal vein)
src/ontology/imports/uberon_terms.txt, src/ontology/imports/uberon_import.owl regenerated
src/ontology/efo-edit.owl EFO_0006835 obsoleted → MONDO:0018824

Note: imports/mondo_import.owl is gitignored on this line too (CI rebuilds it from the MONDO mirror), so as in #2820 it is not part of this diff — same scope as the EVA import (#2684 / bfe4783), where MONDO seeds landed as text files and the built module caught up at the next CI build. The obsoletion's IAO_0100001 → MONDO:0018824 is an annotation, so nothing dangles logically in the meantime.

The 33 imported terms
MONDO ID Label
MONDO:0000466 first-degree atrioventricular block
MONDO:0000467 second-degree atrioventricular block
MONDO:0000598 aphasia
MONDO:0000705 Clostridium difficile colitis
MONDO:0000755 ectopic pregnancy
MONDO:0001217 pseudomembranous conjunctivitis
MONDO:0001261 Mobitz type II atrioventricular block
MONDO:0001276 expressive language disorder
MONDO:0001339 portal vein thrombosis
MONDO:0001533 pes anserinus tendinitis or bursitis
MONDO:0001882 bacteriuria
MONDO:0001953 pyuria
MONDO:0010096 tardive dyskinesia
MONDO:0011885 tubulointerstitial nephritis and uveitis syndrome
MONDO:0015340 drug rash with eosinophilia and systemic symptoms
MONDO:0015584 febrile infection-related epilepsy syndrome
MONDO:0016010 vitamin K-antagonist embryofetopathy
MONDO:0016098 immune-mediated necrotizing myopathy
MONDO:0017943 autoerythrocyte sensitization syndrome
MONDO:0018824 pyoderma gangrenosum
MONDO:0018835 nodular regenerative hyperplasia of the liver
MONDO:0019204 respiratory bronchiolitis-interstitial lung disease syndrome
MONDO:0019509 cutaneous leukocytoclastic angiitis
MONDO:0019960 VIPoma
MONDO:0024507 aniridia 1
MONDO:0040753 latent tuberculosis infection
MONDO:0040871 psychogenic polydipsia
MONDO:0043726 multiple organ dysfunction syndrome
MONDO:0043789 serum sickness
MONDO:0100549 focal nodular hyperplasia
MONDO:1010185 transplant rejection
MONDO:1030007 hypertensive urgency
MONDO:1040017 intestinal fistula

Checks

  • All 34 requested IDs verified against OLS — bidirectional ID→label and label→ID match, labels match the ticket exactly (done in Import 33 MONDO terms for Open Targets Safety 2.0 (refs #2818) #2820; commits unchanged)
  • No requested term is obsolete or deprecated
  • All 33 imported terms have an asserted subClassOf path to MONDO:0000001 disease in the generated import — the parent requested in the ticket
  • UBERON:0002017 verified bidirectionally against OLS (label "portal vein", not obsolete)
  • uberon_import.owl rebuild under the EFO 3 Makefile (odkfull image) reproduces the committed file byte-for-byte
  • Obsoletion follows house convention: obsolete_ label prefix, owl:deprecated true, obsoleted_in_version 3.94.0, reason_for_obsolescence, IAO_0100001 → MONDO:0018824, all logical axioms removed, definition/author/xrefs retained
  • EFO 3 CI (qc) should be watched on this PR — the equivalent checks were green on Import 33 MONDO terms for Open Targets Safety 2.0 (refs #2818) #2820, but under the owlmake pipeline

Notes / open questions

MONDO:0003634 proteinuria was not imported

MONDO_0003634 is listed in src/ontology/iri_dependencies/mondo_exclude.txt. The robot remove -T iri_dependencies/mondo_exclude.txt step in the Makefile's mondo_import.owl rule strips it from the built import, so adding it to the seed list has no effect. This exclusion is deliberate and still correct:

  • mondo_exclude.txt descends from a file originally named mondo_duplicates.txt; the entry dates to 74f8884 (2019-04-12), "fixed duplicate label issue".
  • EFO already carries proteinuria as HP:0000093 "Proteinuria", imported via hp_terms.txt and present in hp_import.owl.
  • MONDO's own class carries an editorial rdfs:comment recommending the HPO term instead.

Recommendation: keep the exclusion and use HP:0000093 for proteinuria annotation in Open Targets Safety 2.0. Reviewers who disagree should say so — the alternative is dropping MONDO_0003634 from mondo_exclude.txt and rebuilding.

Incidental line in the derived seed list

imports/mondo_terms.txt gains one line unrelated to this ticket: MONDO_0100100. It was added to the source list by the #2815 import without the derived file being regenerated at the time; this rebuild catches it up.

GWAS flag on the obsoleted term

EFO_0006835 is flagged gwas_trait "true" via iri_dependencies/gwas_terms.tsv, which obsoletion does not update — 990 previously obsoleted EFO terms are in the same state, so this follows existing practice. Worth flagging to the GWAS team, but out of scope here.


Refs #2818 — intentionally left open, as the proteinuria part of the request is answered by an existing term rather than by this import.

🤖 Generated with Claude Code

ar-ibrahim and others added 3 commits September 14, 2026 11:19
Adds 33 of the 34 requested MONDO disease terms to the import seed list
and regenerates the derived seed file. All terms were verified against
OLS (bidirectional ID/label match), none are obsolete, and all resolve
to MONDO:0000001 'disease' via MONDO's own hierarchy in the generated
import - so no subclasses.csv entry or efo-edit.owl change is needed.

MONDO:0003634 'proteinuria' is deliberately omitted. It is listed in
mondo_exclude.txt as a duplicate label: EFO already carries proteinuria
as HP:0000093, imported via hp_terms.txt. MONDO's own class also carries
an editorial comment recommending the HPO term instead. Requesters
should use HP:0000093 for proteinuria annotation.

The derived imports/mondo_terms.txt additionally picks up MONDO_0100100,
added to the source list by 064b6e5 (refs #2815) without the derived
file being regenerated at the time.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AWNpNSoJahy3ZtBcMaUstK
…2818)

Fixes a nolabels-violation QC failure introduced by the MONDO import in
7546782. MONDO:0001339 "portal vein thrombosis" asserts
RO_0004026 (disease has location) some UBERON:0002017, but the portal
vein was not on EFO's UBERON seed list, so the merged ontology carried a
bare class declaration with no rdfs:label.

UBERON:0002017 was verified bidirectionally against OLS (label "portal
vein", not obsolete) and added to the UBERON seed list; the import was
regenerated with om make imports/uberon_import.owl --rebuild
mirrors,imports.

The regenerated import also reparents UBERON:0001639 "hepatic portal
vein" from UBERON:0001638 (vein) to UBERON:0002017 (portal vein). That
is BOT extraction no longer having to lift it to the nearest available
ancestor, and matches UBERON's asserted hierarchy.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AWNpNSoJahy3ZtBcMaUstK
… (refs #2818)

Fixes a duplicate-label QC failure introduced by the MONDO import in
7546782. The native EFO term and the newly imported MONDO:0018824 both
carried the label "pyoderma gangrenosum".

Resolved by obsoleting the EFO term in favour of the Mondo one:
  - label prefixed with obsolete_
  - owl:deprecated true
  - obsoleted_in_version 3.94.0 (next minor after the current 3.93.0)
  - reason_for_obsolescence and IAO_0100001 pointing at MONDO:0018824
  - all logical axioms removed (both subClassOf parents and the
    RO_0002314 some UBERON_0000014 restriction)

The definition, original IAO_0000117 author annotation and all seven
xrefs are retained, matching the convention of the existing obsolete
terms in this file. No axiom elsewhere in efo-edit.owl referenced
EFO_0006835, and it does not appear in subclasses.csv, so nothing needed
rewiring.

Note: EFO_0006835 is flagged gwas_trait "true" in the generated
components/gwas_import.owl, which is driven by iri_dependencies/
gwas_terms.tsv and is not updated by obsoletion. 990 previously
obsoleted EFO terms are in the same state, so this follows existing
practice rather than introducing a new gap.

Verified with om make qc: all four checks pass (sparql_test with 11/11
rules clean, all_reports, label_synonym_dup_check, check_mondo_obsoletes),
plus om make normalize_src and om reason -r ELK.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AWNpNSoJahy3ZtBcMaUstK
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.

2 participants