moscot.costs.LeafDistance¶
- class moscot.costs.LeafDistance(adata, weight='weight', **kwargs)[source]¶
Shortest path distance on a weighted tree.
Note
This class ignores attr which is always set to uns.
See also
See Lineage tree on how to use this cost in the
LineageProblem
.
- Parameters:
Methods
__call__
(*args, **kwargs)Compute the cost matrix.
Attributes