Skip to contents

Annotate all cells with contour level of cell type-specific density.

Usage

allocateCells(spe, to.roi = TRUE, to.contour = TRUE)

Arguments

spe

A SpatialExperiment object.

to.roi

Logical. Whether to allocate cells to ROIs.

to.contour

Logical. Whether to allocate cells to contour levels.

Value

A SpatialExperiment object. An extra column is added to the colData.

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.