sfaira.versions.metadata.OntologyCellosaurus.prepare_maps_to_leaves¶
- OntologyCellosaurus.prepare_maps_to_leaves(include_self: bool = True) Dict[str, numpy.ndarray] ¶
Precomputes all maps of nodes to their leave nodes.
- Parameters
include_self – whether to include node itself
- Returns
Dictionary of index vectors of leave node matches for each node (key).