CellChat
CellChat copied to clipboard
Duplicated vertex labels when using remove.isolate argument
Hi,
I am just getting used to using CellChat and it is thus far been really useful! I'm currently running into an issue with the remove.isolate when I run netVisual_circle(). When I set remove.isolate = T after using sources.use and/or top to filter down my interactions in the resulting plot some of the vertex names are duplicated and plotted on top of each other.
Here's an example of what this looks like using my dataset. Is there another parameter I need to change to fix this? Thanks!
mat <- cellchat@net$weight
groupSize <- as.numeric(table(cellchat@idents))
netVisual_circle(mat,
vertex.weight = groupSize, weight.scale = T, edge.weight.max = max(mat))
netVisual_circle(mat, top = 0.0005, remove.isolate = T,
vertex.weight = groupSize, weight.scale = T, edge.weight.max = max(mat))

I have the same problem. Any solution?