anndict.wrappers.leiden_sub_cluster

anndict.wrappers.leiden_sub_cluster#

anndict.wrappers.leiden_sub_cluster(adata, groupby, **kwargs)[source]#

Perform Leiden clustering on subgroups of cells.

This function applies Leiden clustering to subgroups of cells defined by the groupby parameter.

Parameters:
adata AnnData

An AnnData.

groupby str

Column name in adata.obs for grouping cells before subclustering.

kwargs

Additional keyword arguments to pass to leiden_adata_dict().

Return type:

AnnData

Returns:

None

Notes

The function modifies the input AnnData object in-place.