CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

No image from Seurat object

Open GCAT01 opened this issue 10 months ago • 2 comments

I was running into the same error as #309 however my cellchat object does not contain an image.

> cellChat@images
list()

I created this cellchat object from a Seurat object with an image included

> s_obj@images
$slice1
Spatial coordinates for 2784 cells
Default segmentation boundary: centroids 
Associated assay: Spatial 
Key: slice1_ 

I created the object using the following

cellChat <- createCellChat(s_obj, group.by = "sctype_classification",
                           assay = "SCT", coordinates = spatial.locs,
                           spatial.factors = spatial.factors)

Any thoughts?

GCAT01 avatar Feb 22 '25 08:02 GCAT01

Thanks for mentioning the issue. I am still waiting for this issue to be resolved. Let me know if you find a solution.

alipirani88 avatar Feb 24 '25 21:02 alipirani88

@GCAT01 @alipirani88 Due to the different spatial technologies, one of the better way is to manually create spatial.factors, see https://github.com/jinworks/CellChat/issues/309 and our tutorial of CellChat_analysis_of_multiple_spatial_transcriptomics_datasets

sqjin avatar Mar 16 '25 11:03 sqjin