opendvp.tl.stats_anova#
- stats_anova(adata, grouping, FDR_threshold=0.05, posthoc='pairwise_tukey')#
Perform one-way ANOVA for all columns of an AnnData object across all groups in a categorical column.
- Parameters:
adata (anndata.AnnData) – AnnData object.
grouping (str) – Column header in adata.obs, categorizing different groups to test.
FDR_threshold (float, default 0.05) – The threshold for the FDR correction.
posthoc (str or None, default "pairwise_tukey") – Post-hoc test to perform on significant features. Currently only ‘pairwise_tukey’ is supported. If None, no post-hoc test is run.
- Returns:
A new AnnData object with ANOVA results in
.varand post-hoc results for significant features in.uns['anova_posthoc'].- Return type: