spatialCoords<-,SpatialExperiment-method {SpatialExperiment} | R Documentation

## spatialCoords-setter

### Description

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

### Usage

    ## 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

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

[Package SpatialExperiment version 1.0.0 Index]