Skip to contents

This function adds a new custom annotation column to the colData of a SpatialExperiment object.

Usage

addCustomAnnotation(spatialExp, columnName, values)

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.

Value

A SpatialExperiment object with the new annotation added to its colData.