# NOT RUN {
# access all the inferred cell-cell communications
df.net <- subsetCommunication(cellchat)
# access all the inferred cell-cell communications at the level of signaling pathways
df.net <- subsetCommunication(cellchat, slot.name = "netP")
# Subset to certain cells with sources.use and targets.use
df.net <- subsetCommunication(cellchat, sources.use = c(1,2), targets.use = c(4,5))
# Subset to certain signaling, e.g., WNT and TGFb
df.net <- subsetCommunication(cellchat, signaling = c("WNT", "TGFb"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab