voyagerpy.utils.get_p_clusters#

voyagerpy.utils.get_p_clusters(adata: AnnData, clust: str | int, skip_precalc: bool = False, pval_type: str = 'all', cluster: str = 'cluster') DataFrame | ndarray#

Get the p values for a given cluster.

Parameters:
  • adata (AnnData) – Annotation data matrix.

  • clust (Union[str, int]) – The cluster to test against all other clusters.

  • skip_precalc (bool, optional) – Skip pre calculations, by default False

  • pval_type (str, optional) – The p-value type, by default “all”

  • cluster (str, optional) – The column name containing the clusters, by default “cluster”

Returns:

Dataframe of p-values for each gene, or array of p-values for each gene.

Return type:

Union[DataFrame, ndarray]