Hi,
I want to rotate some spatial images and the corresponding data by 90 degrees. I was previously using the workaround in issue 2702 by @longmanz (based on code by @AmhedVargas and @JPingLin), reproduced below. However, this code no longer works in Seurat v5.1.0 with error message:
Error in rotateSeuratImage(seu.obj, rotation = "L90", slide = "Sample_1") :
no slot of name "coordinates" for this object of class "VisiumV2"
I've checked each of the attributes in the new object and can't find where the coordinates are now stored. I also note that in a Seurat object generated with a previous version (when the rotate script worked), GetTissueCoordinates() produces an entirely different output than seu.obj@images)[["Sample_1"]]@coordinates.
Hi, I want to rotate some spatial images and the corresponding data by 90 degrees. I was previously using the workaround in issue 2702 by @longmanz (based on code by @AmhedVargas and @JPingLin), reproduced below. However, this code no longer works in Seurat v5.1.0 with error message: Error in rotateSeuratImage(seu.obj, rotation = "L90", slide = "Sample_1") : no slot of name "coordinates" for this object of class "VisiumV2"
I've checked each of the attributes in the new object and can't find where the coordinates are now stored. I also note that in a Seurat object generated with a previous version (when the rotate script worked), GetTissueCoordinates() produces an entirely different output than seu.obj@images)[["Sample_1"]]@coordinates.
Can anyone help to update the rotation script?
Many thanks