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