CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

RankNet for several samples

Open mboisvert1 opened this issue 8 months ago • 1 comments

Hi,

I am wondering if it is possible to run the rankNet function on a cellchat object that has multiple (~5) different samples?

When I run compareInteractions on the cellchat object, it shows the # of interactions across all 5 samples. However, when I run rankNet, it only shows the comparison of signaling molecules between the first two samples.

gg1 <- rankNet(cellchat, mode = "comparison", measure = "weight", sources.use = NULL, targets.use = NULL, stacked = T, do.stat = TRUE) gg2 <- rankNet(cellchat, mode = "comparison", measure = "weight", sources.use = NULL, targets.use = NULL, stacked = F, do.stat = TRUE)

gg1 + gg2

mboisvert1 avatar Jun 10 '24 21:06 mboisvert1