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

Parameters:

Methods

__call__(*args, **kwargs)

Compute the cost matrix.

Attributes

adata

Annotated data object.

tree

Tree.