mmcci.an.add_lr_module_score
- mmcci.an.add_lr_module_score(sample, lr_list, key_name='score')[source]
Adds a module score to an AnnData object run through stLearn based on the interactions in a list of ligand-receptor pairs.
- Parameters:
sample (AnnData) – The AnnData object to add the score to. Must be processed through stLearn.
lr_list (list) – The list of ligand-receptor pairs to use.
key_name (str) – The key to use for the score.
- Returns:
The AnnData object with the module score added.
- Return type:
AnnData