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
- Open the src/ontology/imports/*_terms.txt
- Add term to this file
- In the Terminal, run:
export "MEMORY_GB=15"
- Then run import: (for example:)
sh run.sh make imports/chebi_import.owl
- Close Protege and open again
- Edit in Protege
Detailed instructions for adding a new gene¶
- Find the gene in HGNC that you need to add: https://www.genenames.org/. Copy the ID (for example, 8965)
- Open the src/ontology/imports/hgnc_terms.txt
- Add a new line to the file: http://identifiers.org/hgnc/[your ID], for example http://identifiers.org/hgnc/8965
- run import:
sh run.sh make imports/hgnc_import.owl
- Close Protege and open again
- Edit in Protege
- In your diff, you will see changes to mondo-edit.obo, src/ontology/imports/hgnc_terms.txt, src/ontology/imports/hgnc_import.owl
- 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¶
- Close Protege
- Checkout master
- Create a new branch
- Open mondo-edit.obo with a text editor like Sublime or TextEdit
- Add axiom in mondo-edit.obo text file
- For example: relationship: disease_has_basis_in_dysfunction_of http://identifiers.org/hgnc/129
- Save text file
- open mondo-edit.obo in Protege
- File -> save as (obo format, save as mondo-edit.obo)
- Replace existing file
- Check diff
- Commit/Push
Add classes from external ontologies using Protege¶
- Select 'owl:Thing'
- Add a new class paste the full iri in the 'Name:' field, for example, http://purl.obolibrary.org/obo/CHEBI_50906.
- hit 'OK'
- 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.
- See instructions on how to remake the imports file here.