spatialdm.extract_lr

spatialdm.extract_lr(adata, species, mean='algebra', min_cell=0, datahost='builtin')

find overlapping LRs from CellChatDB :type adata: :param adata: AnnData object :type species: :param species: support ‘human’, ‘mouse’ and ‘zebrafish’ :type mean: :param mean: ‘algebra’ (default) or ‘geometric’ :type min_cell: :param min_cell: for each selected pair, the spots expressing ligand or receptor should be larger than the min, respectively. :type datahost: :param datahost: the host of the ligand-receptor data. ‘builtin’ for package built-in otherwise from figshare :return: ligand, receptor, geneInter (containing comprehensive info from CellChatDB) dataframes in adata.uns