annotate hb

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

Parameters

color_key: str Group the hb gene annotations by this value.


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


Web view

annotate_hb_screenshot annotate_hb_screenshot

Python equivalent

import scanpy as sc