powered by
Calculate the adjacency matrix given a spatial coordinate matrix with 2-dimension or 3-dimension or more.
Addcoord2embed(seu, coord.name, assay = "RNA")
return a revised Seurat object with a slot `Spatial` in the reductions slot.
a SeuratObject with spatial coordinate information in the meta.data slot.
meta.data
a character vector, specify the names of spatial coordinates in the meta.data slot. For example, c("x", "y").
c("x", "y")
a string, specify the assay.
None
data(CosMx_subset) library(Seurat) Addcoord2embed(CosMx_subset, coord.name = c("x", "y"))
Run the code above in your browser using DataLab