Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running netVisual_circle() #259

Open
JosieCen opened this issue Nov 21, 2024 · 1 comment
Open

Error when running netVisual_circle() #259

JosieCen opened this issue Nov 21, 2024 · 1 comment

Comments

@JosieCen
Copy link

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
Copy link
Author

JosieCen commented Nov 21, 2024

solved by renewing the groupSize para...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant