scviva.tools.harreman.preprocessing.extract_interaction_db#
- scviva.tools.harreman.preprocessing.extract_interaction_db(adata, use_raw=False, species=None, database=None, extracellular_only=True, verbose=False)[source]#
Extract the metabolite transporter or ligand-receptor (LR) database from .csv files.
- Parameters:
- adata
AnnData AnnData object to compute database for.
- use_raw
bool Whether to use adata.raw.X for database computation.
- species
Optional[Literal['mouse','human']] Species identity to select the LR database from CellChatDB.
- database
Optional[Literal['transporter','LR','both']] Whether to use the transporter database, the LR database, or both.
- extracellular_only
bool|None Whether to restrict the communication inference to extracellular metabolites.
- verbose
bool|None Whether to print progress and status messages.
- adata
- Return type:
- Returns:
Genes by metabolites (or LRs) dataframe. Index is aligned to genes from adata.