Skip to content

Instantly share code, notes, and snippets.

@bellerbrock
Last active August 5, 2019 19:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bellerbrock/88bd4344aae902a13f58fa3d1daad681 to your computer and use it in GitHub Desktop.
Save bellerbrock/88bd4344aae902a13f58fa3d1daad681 to your computer and use it in GitHub Desktop.
Editing trait ontology obo file in protege
Step 1: Download and install Protege.
Step 2: Git clone the ontology repository into local directory.
Step 3: run git checkout -c topic/your_new_topic.
Step 4: Run Protege (./run.sh on linux) and load the .obo file.
Step 5: go to File -> Preferences -> New Entities. Set Auto Generated ID to Numeric, and set Start to an id that will start filling in an unused sequence.
Step 6: Go to entities tab and add new terms by selecting parent class and clicking add subclass.
Step 7: When finished with edits, go to file -> save as and save as obo file.
Step 8: Finally add to git with git add -u, git commit -m "your message here", and git push --set-upstream topic/your_new_topic.
Step 9: Repeat with futher commits as needed, then go to github.com and submit pull request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment