scanpy.Neighbors.transitions

property Neighbors.transitions

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

ndarray, csr_matrixUnion[ndarray, csr_matrix]