dynamo.vf.rank_s_divergence_genes
- dynamo.vf.rank_s_divergence_genes(adata, skey='sensitivity_pca', genes=None, prefix_store='rank_s_div_gene', **kwargs)[source]
- Rank genes based on their diagonal Sensitivity for each cell group.
Be aware that this ‘divergence’ refers to the diagonal elements of a gene-wise Sensitivity, rather than its trace, which is the common definition of the divergence.
Run .vf.sensitivity and set store_in_adata=True before using this function.
- Parameters
adata (
AnnData
) – AnnData object that contains the reconstructed vector field in the .uns attribute.skey (str (default: 'sensitivity_pca')) – The key in .uns of the cell-wise sensitivity matrix.
genes (list or None (default: None)) – A list of names for genes of interest.
prefix_store (str (default: 'rank')) – The prefix added to the key for storing the returned ranking info in adata.
kwargs – Keyword arguments passed to vf.rank_genes.
- Returns
adata – AnnData object which has the rank dictionary for diagonal sensitivity in .uns.
- Return type