Skip to content

Import terms for logical axioms

Import terms into Mondo for use in logical axioms

These workflows for adding classes from external ontologies (i.e., GO or CHEBI), which is much more streamlined compared to MIREOTing.

Preferred Instructions

Added 2020-05-06

  1. Open the src/ontology/imports/*_terms.txt
  2. Add term to this file
  3. In the Terminal, run: export "MEMORY_GB=15"
  4. Then run import: sh make refresh-merged
  5. Close Protege and open again
  6. Edit in Protege

Detailed instructions for adding a new gene

  1. Find the gene in HGNC that you need to add: Copy the ID (for example, 8965)
  2. Open the src/ontology/imports/hgnc_terms.txt
  3. Add a new line to the file:[your ID], for example
  4. run import: sh make refresh-merged
  5. Close Protege and open again
  6. Edit in Protege
  7. In your diff, you will see changes to src/ontology/imports/hgnc_terms.txt and src/ontology/imports/merged_import.owl
  8. Commmit changes on a branch and create a pull request.

Note: if an import does not have a src/ontology/imports/*_terms.txt file (eg for adding NCIT terms). The term(s) to import should be added to src/ontology/imports/manual_seed.txt. When updating the import, the term(s) will seed the import files, which are pulled in when refreshing modules.

Alternate instructions

Add classes from external ontologies using a Text Editor

  1. Close Protege
  2. Checkout master
  3. Create a new branch
  4. Open mondo-edit.obo with a text editor like Sublime or TextEdit
  5. Add axiom in mondo-edit.obo text file
  6. For example: relationship: disease_has_basis_in_dysfunction_of
  7. Save text file
  8. open mondo-edit.obo in Protege
  9. File -> save as (obo format, save as mondo-edit.obo)
  10. Replace existing file
  11. Check diff
  12. Commit/Push

Add classes from external ontologies using Protege

  1. Select 'owl:Thing'
  2. Add a new class paste the full iri in the 'Name:' field, for example,
  3. hit 'OK'
  4. Now you can use this term, for example to construct logical axioms. The next time the imports are refreshed, the metadata (labels, definitions, etc) for this term is imported from the respective external source ontology and becomes visible in mondo-edit.obo.
  5. See instructions on how to remake the imports file here.