Adds a new colData column that marks selected spots
with value_pos and all other spots with
value_neg.
Usage
annotate_spots(
spe,
spots,
value_pos = TRUE,
value_neg = FALSE,
name = "annotation"
)
Arguments
-
spe
-
A SpatialExperiment to annotate.
-
spots
-
Character vector of spot IDs (column names) to mark.
-
value_pos
Value assigned to selected spots.
-
value_neg
Value assigned to all other spots.
-
name
Name of the new annotation column.
Value
The updated SpatialExperiment with the new annotation
column.