dynamo.vf.torsion¶
-
dynamo.vf.
torsion
(adata, basis='umap', vector_field_class=None, **kwargs)[source]¶ Calculate torsion 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 (dict) – The true ODE function, useful when the data is generated through simulation.
- Returns
adata – AnnData object that is updated with the torsion key in the .obs.
- Return type
AnnData