CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

Duplicated vertex labels when using remove.isolate argument

Open sunnyjones5 opened this issue 3 years ago • 1 comments

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))

image image

sunnyjones5 avatar Mar 24 '22 21:03 sunnyjones5

I have the same problem. Any solution?

siefejo1 avatar Sep 09 '22 17:09 siefejo1