Get metadata from either SpatialExperiment or Seurat object
Source:R/seurat_compatibility.R
getMetadata.Rd
Get metadata from either SpatialExperiment or Seurat object
Examples
library(STexampleData)
spe <- Visium_humanDLPFC()
#> see ?STexampleData and browseVignettes('STexampleData') for documentation
#> loading from cache
metadata <- getMetadata(spe)
colnames(metadata)
#> [1] "barcode_id" "sample_id" "in_tissue" "array_row" "array_col"
#> [6] "ground_truth" "reference" "cell_count"