Create a lightweight SpatialExperiment from a spatial Seurat object using
one assay layer, metadata, and resolved spatial coordinates.
Usage
srt_to_spe(
srt,
assay = NULL,
layer = "counts",
coord.cols = c("col", "row"),
image = NULL,
include_meta = TRUE
)Arguments
- srt
A
Seuratobject.- assay
Assay to export. If
NULL, the default assay is used.- layer
Assay layer to export.
- coord.cols
Metadata coordinate columns. By default, SCOP resolves
x/yfirst and thencol/row.- image
Optional Seurat image name. When present, image-derived coordinates are used.
- include_meta
Whether to include Seurat metadata as
colData.