annotate mito

Annotate mitochondrial genes with an optional key to group by observations. Optionally remove cells that contain a high percentage of mitochondrial genes as these are likely low quality samples.

Parameters

color_key: str Group the mitochondia annotations by this value.


max_pct_counts_mt: int Maximum percentage of mitochondial genes to other genes. If a cell contains a mitochondrial gene percentage greater than this value, it will be removed.


Web view

annotate_mito_screenshot annotate_mito_screenshot

Python equivalent

import scanpy as sc