scanpy.Neighbors.transitions

property Neighbors.transitions: Union[numpy.ndarray, scipy.sparse._csr.csr_matrix]

Transition matrix (sparse matrix).

Is conjugate to the symmetrized transition matrix via:

self.transitions = self.Z *  self.transitions_sym / self.Z

where self.Z is the diagonal matrix storing the normalization of the underlying kernel matrix.

Notes

This has not been tested, in contrast to transitions_sym.

Return type

Union[ndarray, csr_matrix]