cellrank.tl.kernels.PrecomputedKernel¶
-
class
cellrank.tl.kernels.
PrecomputedKernel
(transition_matrix=None, adata=None, backward=False, compute_cond_num=False)[source]¶ Kernel which contains a precomputed transition matrix.
- Parameters
transition_matrix¶ (
Union
[ndarray
,spmatrix
,KernelExpression
,str
,None
]) – Row-normalized transition matrix or a key inadata
.obsp
or acellrank.tl.kernels.KernelExpression
with the computed transition matrix. If None, try to determine the key based onbackward
.adata¶ (
anndata.AnnData
) – Annotated data object.
Attributes
Annotated data object.
Direction of the process.
Condition number of the transition matrix.
Get the kernels of the kernel expression, except for constants.
Parameters which are used to compute the transition matrix.
Return row-normalized transition matrix.
Methods
compute_transition_matrix
(*args, **kwargs)Return self.
copy
()Return a copy of self.
read
(fname)Deserialize self from a file.
write
(fname[, ext])Serialize self to a file.
write_to_adata
([key])Write the transition matrix and parameters used for computation to the underlying
adata
object.