Repository navigation
Migrate EFO to ODK-based development - #2634
Closed
aleixpuigb wants to merge 33 commits into
Closed
aleixpuigb wants to merge 33 commits into
aleixpuigb wants to merge 33 commits into
Conversation
1st draft of efo-odk.yml
Complete rewrite with only custom overrides: - PR import override (rename mappings) - MONDO-EFO import component (mondo-id-switch.jar) - Disease-to-phenotype pipeline - GWAS trait tagging - Foreign axioms management - Release version overrides (version.txt instead of dates) - Feature diff targets - Ad-hoc utility targets
This QC was added in PR #2628
These changes ensure import extraction preserves the per-import structure EFO needs and applies per-import exclusion lists consistently. - Updated src/ontology/efo-odk.yml: set import_group.use_base_merging to FALSE to preserve per-import files required by EFO edit files, added explanatory comments and streamlined product entries to use existing imports/<id>_terms files. - Updated src/ontology/efo.Makefile: added a generic pattern rule that overrides ODK-generated import targets to append `robot remove -T iri_dependencies/<id>_exclude.txt` (empty exclude files are no-ops), and added an explicit chebi override while keeping the PR-specific override. Track HANCestro seed IRIs and enable uniform import exclusion handling. - Added src/ontology/imports/hancestro_terms.txt (seed list of HANCestro IRIs) and removed its exclusion from .gitignore so it is committed.
…gging, and SPARQL modules - Introduced `run.sh` as a wrapper for Docker to streamline the GNU Make workflow within a container. - Added `run-command.sh` for logging executed commands and their resource usage. - Created `postprocess-module.ru` to delete specific ontology annotations. - Developed `preprocess-module.ru` to insert version IRI into ontologies. - Added `simple-seed.sparql` to select distinct classes from ontology properties.
Update ontology build to centralize MONDO mirror handling and refresh config fingerprint. CONFIG_HASH was updated. Removed MONDO from the general IMPORTS and deleted the old mirror-mondo target in src/ontology/Makefile. efo-odk.yaml now omits the mondo import and documents why MONDO is intentionally excluded (mondo_import.owl is a build artifact handled by mondo-id-switch.jar and must not be added as a direct owl:import). Added a dedicated $(MIRRORDIR)/mondo.owl mirror target (with curl + .PRECIOUS) and explanatory comments in efo.Makefile to fetch the MONDO base OWL for import extraction; the full mondo-owl.owl target used elsewhere is preserved.
Add a prerequisite so update_repo requires all_robot_plugins. This ensures odk.jar (ROBOT ODK plugin) is copied into ROBOT_PLUGINS_DIRECTORY before running odk.py update/robot odk:import (fixes ODK v1.6 issue where the plugin wasn't loaded). Includes explanatory comment in the Makefile.
Introduce RELEASE_VERSION and override ANNOTATE_ONTOLOGY_VERSION so version IRIs use the repo-style release path. Replace the generic import pattern with explicit ROBOT/ODK-style pipelines for uberon, hancestro, pr (with rename) and mondo, appending exclude removals and conditioning on IMP/IMP_LARGE. Update release targets to depend on OTHER_SRC and IMPORT_FILES, use ROBOT_RELEASE_IMPORT_MODE to merge imports, add relax/reduce steps, ensure correct version IRIs (using RELEASE_VERSION), add a link-annotation for base builds, and perform atomic output writes via tmp files + mv.
This adds a filter so only EFO-namespaced classes are checked for missing labels -- external terms are excluded since they are expected to lack labels when imports are stripped.
Closed
Copilot AI
added a commit
that referenced
this pull request
Apr 14, 2026
…alues Fixes ROBOT QC label_whitespace violations: - 1 obsolete taurine measurement term - ~128 NMR metabolomics terms (EFO_0022xxx range) - Cell lines: TPC-1, BON-1, SK-UT-2, MES-23.5, Hs-578Bst, RT4 NF2.17, CHO-AA8, B16-F1, C-127 - 1 term with trailing non-breaking space (Disorder of vitamin and non-protein cofactor absorption and transport) Part of fix for ROBOT QC failures (issue #2634). Does not close the issue as multiple_definitions, duplicate_definition, and misused_obsolete_label fixes are still needed. Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/24e598da-d958-4009-80ae-c867b0332c39 Co-authored-by: aleixpuigb <[email protected]>
aleixpuigb
added a commit
that referenced
this pull request
Apr 20, 2026
…dit.owl (#2675) * Initial plan * Fix label_whitespace: strip trailing whitespace from 136 rdfs:label values Fixes ROBOT QC label_whitespace violations: - 1 obsolete taurine measurement term - ~128 NMR metabolomics terms (EFO_0022xxx range) - Cell lines: TPC-1, BON-1, SK-UT-2, MES-23.5, Hs-578Bst, RT4 NF2.17, CHO-AA8, B16-F1, C-127 - 1 term with trailing non-breaking space (Disorder of vitamin and non-protein cofactor absorption and transport) Part of fix for ROBOT QC failures (issue #2634). Does not close the issue as multiple_definitions, duplicate_definition, and misused_obsolete_label fixes are still needed. Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/24e598da-d958-4009-80ae-c867b0332c39 Co-authored-by: aleixpuigb <[email protected]> * Obsolete EFO:0022150; replaced with EFO:0022300 (duplicate phospholipids in very small VLDL measurement term) Co-authored-by: aleixpuigb <[email protected]> * Correct obsoletion version --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: aleixpuigb <[email protected]>
Switch reasoning backend to ELK and enable a custom ROBOT report profile. Updates: Makefile - changed CONFIG_HASH, REASONER to ELK, added ROBOT_PROFILE and REPORT_PROFILE_OPTS, and replaced check_for_robot_updates with logic to diff the active profile against the template. Added src/ontology/profile.txt containing the ROBOT report checks and severities, and updated the large efo-edit.owl file (regenerated blank node IDs). efo-odk.yaml - increased robot_java_args to -Xmx20G, set reasoner to ELK and enabled custom_profile. run.sh - raised default ODK_JAVA_OPTS to -Xmx20G. These changes enable use of a stable ROBOT profile and increase JVM memory for processing.
Not efo-edit.owl
HK-2 and NB4-MR2 are 'cell culture' terms that derive from cell types, not from 'cell culture (ptherwise the 'cell culture' was part of an organ) Obsolete duplicated Orphanet terms that had duplicated terms with Mondo
Removed an EquivalentClasses axiom for obo:CL_0002364 (cortical thymic epithelial cell). Marked efo:EFO_0010896 as obsolete: updated its textual definition to prefix 'OBSOLETE.', added a mapping (obo:IAO_0100001) to obo:CL_0009023, added rdfs:comment 'Term already exists in CL', changed the rdfs:label to include 'obsolete', set owl:deprecated true, and removed its EquivalentClasses axiom.
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.
No description provided.