Merge sel_region from the selectRegion function to SpatialExperiment.
Source:R/postSelRegion.R
postSelRegion.Rd
Merge sel_region from the selectRegion function to SpatialExperiment.
Examples
data("xenium_bc_spe")
coi <- c("Breast cancer", "Fibroblasts", "B cells", "T cells")
spe <- gridDensity(spe, coi = coi)
sel_region <- data.frame(
"node" = seq(10),
"node_x" = seq(10),
"node_y" = seq(10)
)
spe1 <- postSelRegion(spe, sel_region)