API Reference

What’s an API?

API stands for “Application Programming Interface”. Ontolopy’s API Reference describes everything you needs to know about Ontolopy to know how to use it. It describes all public objects, modules, and functions.

ontolopy.obo

The ontolopy.obo module contains code for creating and working with the Obo class: objects that represent ontologies.

Obo([source_dict])

Creates Obo ontology object from dict with ontology terms for keys, mapping to term attributes and relations.

Obo.merge(new[, prefer])

Recursively merges new into self and returns a merged Obo ontology.

download_obo(data_name[, out_dir])

Download obo from a list of known locations.

load_obo(file_loc[, ont_ids, discard_obsolete])

Loads ontology from .obo file at file_loc.