Skip to content
Discussion options

You must be logged in to vote

@asmlgkj -- hope this helps! Let me know if you have further questions.

Where exactly in the Seurat object can I find the coordinates that represent each cell’s position?

For centroids, you can retrieve the coordinates with GetTissueCoordinates(v3d). Within the Seurat object you will find coordinates at: "images" slot -> Visium object ("slice1.polygons") -> boundaries -> Centroids object ("centroids") -> "coords" slot. See the screenshot below.

For segmentations, you can retrieve the segmentation coordinates with GetTissueCoordinates(v3d[["slice1.polygons"]]@boundaries[["segmentation"]]). Here, each pair of coordinates corresponding to a single cell ID represents one vertex of a cell s…

Replies: 2 comments

Comment options

anashen
Sep 18, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by anashen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants