cellrank.tl.kernels.VelocityKernel.write_to_adata

VelocityKernel.write_to_adata(key=None)

Write the transition matrix and parameters used for computation to the underlying adata object.

Parameters

key (Optional[str]) – Key used when writing transition matrix to adata. If None, determine the key automatically.

Return type

None

Returns

None Updates the adata with the following fields:

  • .obsp['{key}'] - the transition matrix.

  • .uns['{key}_params'] - parameters used for calculation.