dynamo.vf.acceleration

dynamo.vf.acceleration(adata, basis='umap', vector_field_class=None, **kwargs)[source]

Calculate acceleration for each cell with the reconstructed vector field function.

Parameters
  • adata (AnnData) – AnnData object that contains the reconstructed vector field function in the uns attribute.

  • basis (str or None (default: umap)) – The embedding data in which the vector field was reconstructed.

  • vector_field_class (vectorfield) – If not None, the divergene will be computed using this class instead of the vector field stored in adata.

Returns

adata – AnnData object that is updated with the acceleration key in the .obs as well as .obsm. If basis is pca, acceleration matrix will be inverse transformed back to original high dimension space.

Return type

AnnData