nichesphere.comm.calculate_LR_CT_pair_scores_dir

nichesphere.comm.calculate_LR_CT_pair_scores_dir#

nichesphere.comm.calculate_LR_CT_pair_scores_dir(ccommTable, LRscoresCol)#

Get cell communication scores per cell type pair per LR pair by summing that LR pair scores for that cell type pair.

Parameters:
  • ccommTable (pd.DataFrame) – Condition specific cell - cell communication table (output from CrossTalkeR)

  • LRscoresCol (str) – name of the ccommTable column where the LR scores are (usually ‘MeanLR’ for CrossTalkeR)

Returns:

scores – cell communication scores per cell type / LR pair (allpair in CrossTalkeR)

Return type:

pd.Series