multivelovae.is_outlier

multivelovae.is_outlier(adata, metric, lower_nmads=20, upper_nmads=20, plot=True)
Find outlier cells via median absolute deviations.

Modified from www.sc-best-practices.org/preprocessing_visualization/quality_control.html.

Args:
adata (anndata.AnnData):

Anndata object.

metric (str):

A field in adata.obs to be filtered on.

lower_nmads (int, optional):

Lower n MADs threshold. Defaults to 20.

upper_nmads (int, optional):

Upper n MADs threshold. Defaults to 20.

plot (bool, optional):

Whether to plot the outliers.

Returns:

numpy.ndarray: Outlier filter binary vector.