Error when running netVisual_circle()
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?
solved by renewing the groupSize para...
I have the same problem How did you solve it? Can you tell me more details? @JosieCen