Skip to content

test_de_paired

hnoca.stats.de.test_de_paired(query_adata, matched_adata, covar=None, num_threads=1, var_names=None, adjust_method='holm')

Test for differential expression between query data and matches reference cells using an F-test.

Parameters:

Name Type Description Default
query_adata AnnData

AnnData object The query data

required
matched_adata AnnData

AnnData object The matched reference data

required
covar str | DataFrame | None

str or pd.DataFrame The covariates

None
num_threads int

int The number of threads to use

1
var_names list | None

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

A `pd.DataFrame` with the differential expression results