Skip to content

test_de

hnoca.stats.de.test_de(adata, group, covar, num_threads=1, return_coef_group=None, var_names=None, adjust_method='holm')

Test for differential expression using ANOVA

Parameters:

Name Type Description Default
adata AnnData

AnnData object

required
group Union[str, Series]

str or pd.Series The group labels

required
covar Union[str, DataFrame]

str or pd.DataFrame The covariates

required
num_threads int

int The number of threads to use

1
return_coef_group str

str The group to return coefficients for

None
var_names list

list The variable names to test

None
adjust_method str

str The method to adjust p-values. See https://www.statsmodels.org/dev/generated/statsmodels.stats.multitest.multipletests.html

'holm'

Returns:

Type Description
DataFrame

A pd.DataFrame with the differential expression results