scvelo.tl.VELOVI.get_permutation_scores

VELOVI.get_permutation_scores(labels_key, adata=None)

Compute permutation scores.

Parameters
labels_key : str

Key in adata.obs encoding cell types

adata : AnnData, None

AnnData object with equivalent structure to initial AnnData. If None, defaults to the AnnData object used to initialize the model.

Return type

Tuple[DataFrame, AnnData]

Returns

  • Tuple of DataFrame and AnnData. DataFrame is genes by cell types with score per cell type.

  • AnnData is the permutated version of the original AnnData.