sqjin / CellChat

R toolkit for inference, visualization and analysis of cell-cell communication from single-cell data
GNU General Public License v3.0
639 stars 146 forks source link

A question about drawing a picture that representing number of L-R pairs. #8

Open Rui-Jing opened 4 years ago

Rui-Jing commented 4 years ago

Hi, Thanks for developing this user-friendly tool. When I was studying the literature you published on bioRxiv, I was very interested in one of the illustrations. As shown in the figure below. Can you provide an example of drawing this diagram with the CellChat object. (It means the function and code that implements the diagram)

image

sqjin commented 4 years ago

@Rui-Jing Hello, you can do it as follows: groupSize <- as.numeric(table(cellchat@idents)) netVisual_circle(cellchat@net$count, vertex.size = groupSize, weight.scale = T, label.edge= T, edge.label.cex = 0.8, vertex.label.cex = 1)

nicholascwho commented 4 years ago

Hi @sqjin

I think somewhat along the same line, is there any way to list out the exact ligand-receptor pairs? Preferably by cell type.

Thank you!

sqjin commented 4 years ago

@nicholascwho , please check the bubble plot for showing all L-R pairs between any two cell groups (issue #14 )

nicholascwho commented 4 years ago

@sqjin Got it, thank you!