voyagerpy.utils.get_stat_clusters#

voyagerpy.utils.get_stat_clusters(adata: AnnData, clust: str | int, cluster: str = 'cluster') dict#

Get differential expression statistics on genes for a given cluster, against all other clusters.

Parameters:
  • adata (AnnData) – AnnData object with defined clusters in adata.obs.

  • clust (Union[str, int]) – Perform tests on genes, expressed in cells in this cluster.

  • cluster (str, optional) – String to identify cluster column in adata.obs. The default is “cluster”.

Returns:

Dictionary with 3 entries, p values, test statistics and effect sizes, defined for each gene and each cluster paired with the one in the clust parameter.

Return type:

dict