stlearn.add.lr

stlearn.add.lr(adata: anndata._core.anndata.AnnData, db_filepath: str = None, sep: str = '\t', source: str = 'connectomedb', copy: bool = False) → Optional[anndata._core.anndata.AnnData][source]

Add significant Ligand-Receptor pairs into AnnData object

Parameters
  • adata (AnnData The data object to add L-R info into) –

  • db_filepath (str The path to the CPDB results file) –

  • sep (str Separator of the CPDB results file) –

  • source (str Source of LR database (default: connectomedb, can also support 'cellphonedb')) –

  • copy (bool Copy flag indicating copy or direct edit) –

Returns

adata

Return type

AnnData The data object that L-R added into