spatialCoords-set-SpatialExperiment-method: spatialCoords-setter

Description Usage Arguments Value Examples

Description

a setter method which sets/replaces the spatial coordinate in a SpatialExperiment class object.

Usage

1
2
## S4 replacement method for signature 'SpatialExperiment'
spatialCoords(x) <- value

Arguments

x

a SpatialExperiment class object

value

a DataFrame with the new spatial coordinates to set.

Value

none

Examples

1
2
3
4
5
example(SpatialExperiment)
fakeFishCoords <- cbind(fishCoordinates[,c(1:3)], fishCoordinates[,3])
        colnames(fakeFishCoords) <- c("MyCell_ID", "Irrelevant", "x", "y")
spatialCoords(se) <- fakeFishCoords
spatialCoords(se)

SpatialExperiment documentation built on Nov. 8, 2020, 7:35 p.m.