Subset spatial object by cell/spot indices
Examples
library(STexampleData)
spe <- Visium_humanDLPFC()
#> see ?STexampleData and browseVignettes('STexampleData') for documentation
#> loading from cache
# Subset first 100 spots
spe_subset <- subsetSpatialObject(spe, 1:100)
ncol(spe_subset)
#> [1] 100