scvelo.utils.vcorrcoef

scvelo.utils.vcorrcoef(X, y, mode='pearsons', axis=-1)

Pearsons/Spearmans correlation coefficients.

Use Pearsons / Spearmans to test for linear / monotonic relationship.

Parameters:
X : np.ndarray

Data vector or matrix

y : np.ndarray

Data vector or matrix

mode : ‘pearsons’ or ‘spearmans’ (default: ‘pearsons’)

Which correlation metric to use.