stlearn.tl.cci.lr

stlearn.tl.cci.lr(adata: anndata._core.anndata.AnnData, use_lr: str = 'cci_lr', distance: float = None, verbose: bool = True) → anndata._core.anndata.AnnData

Calculate the proportion of known ligand-receptor co-expression among the neighbouring spots or within spots :param adata: :type adata: AnnData The data object to scan :param use_lr: :type use_lr: str object to keep the result (default: adata.uns[‘cci_lr’]) :param distance: :type distance: float Distance to determine the neighbours (default: closest), distance=0 means within spot

Returns

adata

Return type

AnnData The data object including the results