scmorph.pp.kruskal_filter

Contents

scmorph.pp.kruskal_filter#

scmorph.pp.kruskal_filter(adata, test_column='PlateID', sigma=1, sigma_function='mad', copy=False)[source]#

Filter features based on Kruskal-Wallis H-test statistics.

Parameters:
adata

Annotated data matrix.

test_column default: 'PlateID'

The column name in adata.obs that contains the batch information.

sigma default: 1

The number of standard deviations to use for the threshold.

sigma_function default: 'mad'

The function to use for calculating the standard deviation. Either “mad” or “std”.

copy default: False

Whether to return a copy or modify adata inplace

Return type:

AnnData | None

Returns:

The filtered or annotated AnnData object.