mantispy.pp.filter_images

Contents

mantispy.pp.filter_images#

mantispy.pp.filter_images(adata, copy=False)#

Drop every cell belonging to an image that failed image_qc().

Parameters:
  • adata (AnnData) – Object carrying obs["qc_image_pass"].

  • copy (bool (default: False)) – Return a filtered copy instead of filtering in place.

Return type:

AnnData | None

Returns:

None, or the filtered copy. Subsets obs to the cells whose image passed, and reports how many were dropped.

Raises:

KeyError – If obs has no qc_image_pass, which image_qc() writes.