Wei-BioMath / NeuronChat

GNU General Public License v3.0
29 stars 3 forks source link

attribute error #9

Open xuansuyang opened 1 year ago

xuansuyang commented 1 year ago

When I run the sample data according to the tutorial, run until netVisual_circle_neuron(net_top10, edge.width.max = 10, color.use = colours, vertex.label.cex = 1.5) appears Error in i_set_edge_attr(x, attr(value, "name"), index = value, value = attr(value, : Length of new attribute value must be 1 or 10, the number of target edges, not 3 The four sets of sample data provided by the tutorial will all encounter the same attribute error

Wei-BioMath commented 1 year ago

@xuansuyang I also met this issue recently, which was possibly caused by an upgrade of igraph package (e.g., version 1.4.2). At my end, I just downgraded the igraph to version 1.3.4 and restarted the Rstudio, and the issue was then resolved.

To downgrade the igraph to version 1.3.4, you can run the command library(devtools);install_version("igraph", version = "1.3.4", repos = "http://cran.us.r-project.org")

xuansuyang commented 1 year ago

Thank you.I will try it later.

Wei-BioMath commented 1 year ago

I have updated the function netVisual_circle_neuron to be compatible with the latest version of igraph. So one can also reinstall NeuronChat without downgrade igraph

xuansuyang commented 1 year ago

I have updated the function netVisual_circle_neuron to be compatible with the latest version of igraph. So one can also reinstall NeuronChat without downgrade igraph

Thanks for your answer.I will reinstall it later.