scmorph.pp.kruskal_test#
- scmorph.pp.kruskal_test(adata, test_column='PlateID', progress=True)[source]#
Perform Kruskal-Wallis H-test for each feature across batches.
This can help identify features that are associated with confounders, such as batch and platemap effects. Note that while it does reduce feature space, its main purpose is to remove untrustworthy features associated with technical confounders.
- Parameters:
- adata
AnnData Annotated data matrix.
- test_column
str(default:'PlateID') The column name in
adata.obsthat contains the batch information.- progress
bool(default:True) Whether to show a progress bar.
- adata
- Return type:
- Returns:
Kruskal-Wallis test results saved in
adata.uns["kruskal_test"].