scvelo.tl.velocity_confidence

scvelo.tl.velocity_confidence(data, vkey='velocity', copy=False)

Computes confidences of velocities.

Parameters:
data : AnnData

Annotated data matrix.

vkey : str (default: ‘velocity’)

Name of velocity estimates to be used.

copy : bool (default: False)

Return a copy instead of writing to adata.

Returns:

  • Returns or updates adata with the attributes
  • velocity_length (.obs) – Length of the velocity vectors for each individual cell
  • velocity_confidence (.obs) – Confidence for each cell