Skip to content

Commit

Permalink
Merge pull request #87 from PRIDE-Utilities/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ypriverol authored Oct 12, 2023
2 parents 1995498 + 1bc2c40 commit d12e2f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 70 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Update PRIDE OWL"
name: "Update OWL"

on:
push:
Expand All @@ -19,16 +19,20 @@ jobs:
CV_VERSION=`grep data-version pride_cv.obo | grep -oP "(\d+.\d+.\d+)"`
echo CV_VERSION=${CV_VERSION}
echo "CV_VERSION=${CV_VERSION}" >> $GITHUB_ENV
- name: Generate PRIDE OWL
- name: Generate OWL
run: |
docker pull obolibrary/robot:v1.8.1
# Replace the imports of the UO and PATO ontology .obo files with the equivalent .owl files
cp pride_cv.obo tmp.obo
sed -e "s/pato.obo/pato.owl/g" -e "s/uo.obo/uo.owl/g" -i tmp.obo
cp pride_cv.obo tmp_pride.obo
cp unimod.obo tmp_unimod.obo
sed -e "s/pato.obo/pato.owl/g" -e "s/uo.obo/uo.owl/g" -i tmp_pride.obo
sed -e "s/pato.obo/pato.owl/g" -e "s/uo.obo/uo.owl/g" -i tmp_unimod.obo
head -n 50 tmp.obo
export JAVA_TOOL_OPTIONS=-Xmx6G
docker run --rm -v ${{ github.workspace }}:/work obolibrary/robot:v1.8.1 robot convert -vvv -i /work/tmp.obo -o /work/pride_cv.owl --format owl
rm tmp.obo
docker run --rm -v ${{ github.workspace }}:/work obolibrary/robot:v1.8.1 robot convert -vvv -i /work/tmp_pride.obo -o /work/pride_cv.owl --format owl
docker run --rm -v ${{ github.workspace }}:/work obolibrary/robot:v1.8.1 robot convert -vvv -i /work/tmp_unimod.obo -o /work/unimod.owl --format owl
rm tmp_pride.obo
rm tmp_unimod.obo
- name: Create pull request
id: cpr
uses: peter-evans/create-pull-request@v4
Expand All @@ -39,7 +43,7 @@ jobs:
author: GitHub <[email protected]>
branch: update-owl-file
delete-branch: true
title: Update PRIDE OWL file
title: Update OWL file
body: This automated PR updates the OWL file corresponding to the OBO file
- name: Approve pull request
if: (steps.cpr.outputs.pull-request-operation == 'created' || steps.cpr.outputs.pull-request-operation == 'updated')
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/update-unimod-owl.yaml

This file was deleted.

0 comments on commit d12e2f2

Please sign in to comment.