scmorph.qc.count_cells_per_group

scmorph.qc.count_cells_per_group#

scmorph.qc.count_cells_per_group(adata, group_keys, inplace=True)[source]#

Count number of cells per group.

Parameters:
adata AnnData

Annotated data matrix.

group_keys list[str]

List of keys to group by, typically plate, well and site or image ID.

inplace bool (default: True)

Whether to modify the AnnData object in place.

Returns:

Annotated data matrix with an additional column “cells_per_group” in adata.obs containing the number of cells group.