Deprecated: spatialData of subsets in ExperimentSubset objects
Source:R/allGenerics.R, R/SubsetSpatialExperiment.R
subsetSpatialData.RdsubsetSpatialData() and
spatialData(x, subsetName =) are deprecated, and
subsetSpatialData<- is defunct, because
spatialData() and spatialData<- are deprecated in
SpatialExperiment, which now keeps these columns in colData.
Use subsetColData(x, subsetName) to get them, which returns
all of the subset's colData columns, with
parentColData = TRUE to include the main object's, and
colData(x, subsetName = "name")$column <- values to add a
column to a subset. The getters will be defunct in the next
release.
Usage
subsetSpatialData(x, subsetName, parentSpatialData)
subsetSpatialData(x, subsetName) <- value
# S4 method for class 'SubsetSpatialExperiment'
subsetSpatialData(x, subsetName, parentSpatialData)
# S4 method for class 'SubsetSpatialExperiment'
spatialData(x, ...)
# S4 method for class 'SubsetSpatialExperiment'
subsetSpatialData(x, subsetName) <- valueArguments
- x
ExperimentSubsetInputExperimentSubsetobject.- subsetName
character(1)Name of the subset to setspatialDatato.- parentSpatialData
logical(1)Logical value indicating if parent spatialData should be combined or not. DefaultFALSE.- value
Ignored: the setter is defunct.
- ...
For
spatialData():subsetNameandparentSpatialData, as forsubsetSpatialData(). WithoutsubsetName, all arguments are passed on to theSpatialExperimentmethod.
Value
The spatialData from input object, with a deprecation
warning. The setter fails with an error.