stlearn.add.lr

stlearn.add.lr(adata: AnnData, db_filepath: str, sep: str = '\t', source: str = 'connectomedb', copy: bool = False) AnnData | None[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