CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

Error when running netVisual_circle()

Open JosieCen opened this issue 1 year ago • 2 comments

netVisual_circle(cellchat_PD@net$weight, vertex.weight = groupSize, weight.scale = T, label.edge= F, title.name = "Interaction weights/strength in PD",arrow.size = 0.05) Error in i_set_vertex_attr(x, attr(value, "name"), index = value, value = attr(value, : Length of new attribute value must be 1 or 17, the number of target vertices, not 14 I have checked the element below: length(groupSize) [1] 14 length(unique(seurat_PD$subtype)) [1] 17 And running the cellchat_PD@net$count is normal. netVisual_circle(cellchat_PD@net$count, vertex.weight = TRUE, weight.scale = TRUE, label.edge = FALSE, title.name = "Number of interactions in PD",arrow.size = 0.05) What's wrong with my groupSize? And how can I fix it?

JosieCen avatar Nov 21 '24 13:11 JosieCen

solved by renewing the groupSize para...

JosieCen avatar Nov 21 '24 17:11 JosieCen

I have the same problem How did you solve it? Can you tell me more details? @JosieCen

Tsanhok avatar Sep 25 '25 15:09 Tsanhok