Create a Seurat object from a SpatialExperiment, preserving colData and
spatial coordinates as metadata columns.
Usage
spe_to_srt(
spe,
assay = "Spatial",
layer = NULL,
coord.cols = c("x", "y"),
project = "SpatialExperiment"
)Arguments
- spe
A
SpatialExperimentorSummarizedExperiment.- assay
Assay name for the created Seurat assay.
- layer
Assay from
speto use as counts. IfNULL, the first assay is used.- coord.cols
Metadata names used for spatial coordinates in Seurat.
- project
Project name passed to
Seurat::CreateSeuratObject().