opendvp.tl.stats_ttest

Contents

opendvp.tl.stats_ttest#

stats_ttest(adata, grouping, group1, group2, FDR_threshold=0.05)#

Perform a t-test for all columns of an AnnData object between two groups.

Parameters:
  • adata (anndata.AnnData) – AnnData object.

  • grouping (str) – Column header in adata.obs, categorizing different groups to test.

  • group1 (str) – Value in grouping column to be tested against.

  • group2 (str) – Value in grouping column to be tested against group 1.

  • FDR_threshold (float, default 0.05) – The threshold for the FDR correction.

Returns:

Results are saved to adata.var in-place.

Return type:

None