nichesphere.comm.getDiffComm#
- nichesphere.comm.getDiffComm(diffCommTbl, pairCatDF, ncells, cat)#
get the differential communication scores for a specific LR category
- Parameters:
diffCommTbl (pd.DataFrame) – differential communication scores dataframe of cell pairs (or groupings) x LR categories (obtained with plotDiffCcommStatsHM function)
pairCatDF (pd.DataFrame)
ncells (int) – number of cells or groups
cat (str) – LR category to be tested
- Returns:
x_chem – cells x cells or groups x groups dataframe of differential communication scores for a specific LR category
- Return type:
pd.DataFrame