stlearn.tl.cci.het.count

stlearn.tl.cci.het.count(adata: anndata._core.anndata.AnnData, use_clustering: str = None, use_het: str = 'cci_het', verbose: bool = True, distance: float = None) → anndata._core.anndata.AnnData

Count the cell type densities :param adata: :type adata: AnnData The data object including the cell types to count :param use_clustering: :type use_clustering: The cell type results to use in counting :param use_het: :type use_het: The stoarge place for result :param distance: :type distance: int Distance to determine the neighbours (default is the nearest neighbour), distance=0 means within spot

Returns

adata

Return type

AnnData With the counts of specified clusters in nearby spots stored as adata.uns[‘het’]