spatialCoords<-,SpatialExperiment-method {SpatialExperiment} | R Documentation |
a setter method which sets/replaces the spatial coordinate in a SpatialExperiment class object.
## S4 replacement method for signature 'SpatialExperiment' spatialCoords(x) <- value
x |
a SpatialExperiment class object |
value |
a DataFrame with the new spatial coordinates to set. |
none
example(SpatialExperiment) fakeFishCoords <- cbind(fishCoordinates[,c(1:3)], fishCoordinates[,3]) colnames(fakeFishCoords) <- c("MyCell_ID", "Irrelevant", "x", "y") spatialCoords(se) <- fakeFishCoords spatialCoords(se)