Annotate all cells with contour level of cell type-specific density.
Source:R/allocateCells.R
allocateCells.Rd
Annotate all cells with contour level of cell type-specific density.
Arguments
- spe
A SpatialExperiment object.
- to.roi
Logical. Whether to allocate cells to ROIs.
- to.contour
Logical. Whether to allocate cells to contour levels.
Examples
data("xenium_bc_spe")
spe <- gridDensity(spe)
coi <- "Breast cancer"
spe <- findROI(spe, coi = coi)
spe <- allocateCells(spe)
#> Assigning cells to ROIs defined by Breast cancer
#> No contour detected.