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

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

  • 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.

  • kwargs – Any additional keys that will be passed to vector_field_class.compute_torsion function.


adata – AnnData object that is updated with the torsion key in the .obs.

Return type