Hi,
I am running CellChat spatial analysis on a Visium HD dataset and encountered an error when trying to compute hotspot plots using spatialGiPlot().
The code I used was taken directly from the vignette:
idx.Paracrine <- which(chat@LR$LRsig$annotation=="Secreted Signaling")
idx.Juxtracrine <- which(chat@LR$LRsig$annotation=="Cell-Cell Contact")
g1 <- spatialGiPlot(chat,return.object = F,plot.title = "Incoming hotspot scores of secreted signaling",slot.name = "netP",signaling.name = idx.Paracrine,measure = c("indeg"),measure.name = c("incoming"),point.size = 1)
Error in colnames<-(*tmp*, value = c("x", "y", "score")) :
attempt to set 'colnames' on an object with less than two dimensions
How can I fix it?
Thanks
Hi,
I am running CellChat spatial analysis on a Visium HD dataset and encountered an error when trying to compute hotspot plots using spatialGiPlot().
The code I used was taken directly from the vignette:
idx.Paracrine <- which(chat@LR$LRsig$annotation=="Secreted Signaling")
idx.Juxtracrine <- which(chat@LR$LRsig$annotation=="Cell-Cell Contact")
g1 <- spatialGiPlot(chat,return.object = F,plot.title = "Incoming hotspot scores of secreted signaling",slot.name = "netP",signaling.name = idx.Paracrine,measure = c("indeg"),measure.name = c("incoming"),point.size = 1)
Error in
colnames<-(*tmp*, value = c("x", "y", "score")) :attempt to set 'colnames' on an object with less than two dimensions
How can I fix it?
Thanks