Add Custom Annotation to a SpatialExperiment
addCustomAnnotation.Rd
This function adds a new custom annotation column to the colData
of a
SpatialExperiment
object.
Arguments
- spatialExp
A
SpatialExperiment
object to which the annotation will be added.- columnName
A
character
string representing the name of the new annotation column.- values
A vector of values for the annotation. The length of this vector must match the number of columns in the
SpatialExperiment
object.