sfaira.versions.metadata.OntologyList¶
- class sfaira.versions.metadata.OntologyList(terms: List[Union[str, bool, int]], **kwargs)¶
Basic unordered ontology container.
Node IDs and names are the same.
Attributes
Methods
get_ancestors
(node)is_a
(query, reference)Checks if query node is reference node.
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.
prepare_maps_to_leaves
([include_self])Precomputes all maps of nodes to their leave nodes.