opendvp.tl.stats_ttest#
- opendvp.tl.stats_ttest(adata, grouping, group1, group2, FDR_threshold=0.05)#
Perform a t-test for all columns of an AnnData object between two groups.
- Return type:
Parameters#
- adataAnnData
AnnData object.
- groupingstr
Column header in adata.obs, categorizing different groups to test.
- group1str
Value in grouping column to be tested against.
- group2str
Value in grouping column to be tested against group 1.
- FDR_thresholdfloat, default 0.05
The threshold for the FDR correction.
Returns:#
- None
Results are saved to adata.var in-place.