cell2home.compute_top_interactions_one_group
- cell2home.compute_top_interactions_one_group(mdata, modality: str, identity: str, *, var_key: str = 'population', split_obs_key: str = 'Manually_curated_celltype', group_identity: str, top_n: int = 10) Series
Compute top-N ligand–receptor interactions (by mean within one cell type).
Returns
- pd.Series
Index: interaction labels (‘source–target’ or fallback). Values: mean scores within the selected group (descending).