# scvelo.tl.terminal_states¶

scvelo.tl.terminal_states(data, vkey='velocity', groupby=None, groups=None, self_transitions=False, eps=0.001, copy=False, **kwargs)

Computes terminal states (root and end points).

The end points and root cells are obtained as stationary states of the velocity-inferred transition matrix and its transposed, respectively, which is given by left eigenvectors corresponding to an eigenvalue of 1, i.e.

$μ^{\textrm{end}}=μ^{\textrm{end}} \pi, \quad μ^{\textrm{root}}=μ^{\textrm{root}} \pi^{\small \textrm{T}}.$