addCustomAnnotation.Rd
Appends a new column to colData with user-provided values. This can be used to add metadata for downstream analyses or visualization.
colData
addCustomAnnotation(spatialExp, columnName, values)
A SpatialExperiment to annotate.
SpatialExperiment
Name of the new annotation column.
Vector of annotation values (length must match ncol(spatialExp)).
ncol(spatialExp)
The updated SpatialExperiment with the new annotation column.