Skip to content

Commit

Permalink
Draft 1: Update confirmed subclass of evidence in Mondo (#7801)
Browse files Browse the repository at this point in the history
* Create first draft of subclass sync

This workflow implements our subclass syncining strategy:

1. First, we drop all axiom annotations related to the resources we sync with
2. We add them back

* Update the subclassOf evidence in Mondo

* Add DOID, NCIT, OMIM and ORDO evidence to subclass axioms

* Update .github/workflows/subclass.yaml

Co-authored-by: Trish Whetzel <[email protected]>

* Update src/ontology/mondo.Makefile

Co-authored-by: Trish Whetzel <[email protected]>

---------

Co-authored-by: Trish Whetzel <[email protected]>
  • Loading branch information
matentzn and twhetzel authored Jul 30, 2024
1 parent bc23ae3 commit b2a1a8d
Show file tree
Hide file tree
Showing 3 changed files with 2,981 additions and 2,367 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/subclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update Subclass Evidence

on:
# schedule:
# - cron: '0 14 * * 1'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container: obolibrary/odkfull:v1.5.2

steps:
- name: Checkout main branch
uses: actions/checkout@v3

- name: Update Subclass evidence
run: |
cd src/ontology
make GITHUB_ACTION=true IMP=false PAT=false update-subclass-sync -B
# This is important if we are out of sync between Mondo and Mondo Ingest:
# We need to eventually add a check to ensure that no subclass axioms have been added or removed
# We should consider to create a seperate curation workflows with a table with previously supported and now not anymore supported subclass axioms
- name: QC to ensure that nothing other than provenance has changed
run: |
cd src/ontology
make GITHUB_ACTION=true IMP=false PAT=false qc -B
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch-suffix: short-commit-hash
labels: Automated
body: "Update the confirmed subclass axiom annotation."
title: "Weekly automated mappings update"
base: ${{ github.head_ref }}
branch: "mapping_automation"
token: ${{ secrets.GH_TOKEN }}
reviewers: "sabrinatoro"
Loading

0 comments on commit b2a1a8d

Please sign in to comment.