CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

Error when set layout = "chord" in netVisual_aggregate() or netVisual_aggregate()

Open yunbokai opened this issue 2 years ago • 3 comments

Hi, I want to use CellChat as the tutorial described in 'Brief tutorial for CellChat analysis of multiple spatially resolved transcriptomic datasets'. I got the result when set layout = "chord" in netVisual_aggregate() or netVisual_aggregate(). However, I got error when set layout = "spatial" in netVisual_aggregate() or netVisual_aggregate(). cellchat 'names' attribute [4] must be the same length as the vector [2]

Do you have any suggestion? Thanks

yunbokai avatar Dec 22 '23 05:12 yunbokai

@yunbokai No idea on this error. It works when I tried netVisual_aggregate(cellchat, signaling = pathways.show, layout = "spatial", slice.use = "A1")

sqjin avatar Dec 29 '23 09:12 sqjin

Hi, Not sure what is going on. I got this error too when pathways are in patterns like below. Error in names(x) <- value: 'names' attribute [4] must be the same length as the vector [2], which I am not able to use netVisual_aggregate, by setting layout = "spatial". However, layout = "circle" works fine.

`image

Thank you! Phoebe

phoebee-h avatar Jan 17 '24 02:01 phoebee-h