opendvp.tl.stats_anova

Contents

opendvp.tl.stats_anova#

opendvp.tl.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.

Return type:

AnnData

Parameters#

adataAnnData

AnnData object.

groupingstr

Column header in adata.obs, categorizing different groups to test.

FDR_thresholdfloat, default 0.05

The threshold for the FDR correction.

posthocstr 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:#

ad.AnnData

A new AnnData object with ANOVA results in .var and post-hoc results for significant features in .uns['anova_posthoc'].