sfaira.versions.metadata.OntologyMondo¶
- class sfaira.versions.metadata.OntologyMondo(branch: str, recache: bool = False, **kwargs)¶
Attributes
Methods
add_extension
(dict_ontology)Extend ontology by additional edges and nodes defined in a dictionary.
get_ancestors
(node)get_descendants
(node)Get effective leaves in ontology given set of observed nodes.
is_a
(query, reference[, convert_to_id])Checks if query node is reference node or an ancestor thereof.
is_a_node_id
(x)is_node
(x)map_node_suggestion
(x[, include_synonyms, ...])Map free text node name to ontology node names via fuzzy string matching.
map_to_leaves
(node[, return_type, include_self])Map a given node to leave nodes.
prepare_maps_to_leaves
([include_self])Precomputes all maps of nodes to their leave nodes.
reset_root
(root)