nichesphere.comm.diffCcommStats

Contents

nichesphere.comm.diffCcommStats#

nichesphere.comm.diffCcommStats(c1CTpairScores_byCat, c2CTpairScores_byCat, cellCatCol)#

Differential cell communication per LR category (eg: biological process)

Parameters:
  • c1CTpairScores_byCat (pd.DataFrame) – exp cell communication table with all interactions

  • c2CTpairScores_byCat (pd.DataFrame) – control cell communication table with all interactions

  • cellCatCol (str) – name of the column in the communication tables containing the cell pair grouping we would like to compare (eg: ‘niche_pairs’, ‘cell_pairs’)

Returns:

diffCommTable – dataframe of Wilcoxon statictics and p-values for each cell pair grouping in each LR category (eg: biological process) columns are named ‘wilcoxStat’, ‘wilcoxPval’, ‘cellCat’ and ‘LRcat’

Return type:

pd.DataFrame