Assigns phenotype labels to cells based on marker intensity thresholds.
Uses the normalised data slot.
Arguments
- object
An
SpatialCellData-classobject.- thresholds
Named list or numeric vector with unique, nonblank marker names and one finite numeric threshold per marker. An empty list selects no positive markers.
- labels
Named character vector mapping signatures to labels, or
NULLfor automatic labelling.
Value
An SpatialCellData-class with a phenotype
column in meta_data.