jinworks / CellChat

R toolkit for inference, visualization and analysis of cell-cell communication from single-cell and spatially resolved transcriptomics
GNU General Public License v3.0
183 stars 21 forks source link

Cannot use remove.isolate = T in netVisual_circle #115

Open nsdelablancac opened 1 month ago

nsdelablancac commented 1 month ago

Hi all!

I would like to remove all my isolate nodes when I used netVisual_circle, but it returns an error:

netVisual_circle(cellchat_HT_sig@net$weight, vertex.weight = groupSize, weight.scale = T, sources.use = c("T0","T1", "T2", "T3", "T4", "T5"), label.edge= F, title.name = "Interaction weights/strength", vertex.label.cex=5, #labels arrow.size = 3, vertex.size.max = 25, #point edge.width.max = 50, remove.isolate = T ) Error in i_set_vertex_attr(x, attr(value, "name"), index = value, value = attr(value, : Length of new attribute value must be 1 or 19, the number of target vertices, not 22

Thanks in advance for your help! Best

sqjin commented 1 month ago

@nsdelablancac This issue is now fixed.