Skip to content

Issue with spatiaGiplot #461

Description

@dianegg25-tech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions