Skip to contents

Use this "getter" function to pull named slots from Region objects. For SpatialMap objects, retrieves data from all Regions in the Analysis and binds them together. This can be used to extract any Region data slot, but for SpatialMap objects, expects feature matrices only (Data, NormalizedData, etc.).

Usage

Data(x, value)

# S4 method for SpatialMap,character
Data(x, value)

# S4 method for Region,character
Data(x, value)

Arguments

x

An object of class SpatialMap or Region

value

A data slot: Data, NormalizedData, ScaledData, or bgData

Value

A numeric matrix, where rows are biomarkers and columns are cells.

Details

See vignette("Quickstart_guide") and vignette("Tutorial_Accessing_slots_in_SpatialMap_object") for example workflows that make use of this function.

Scroll to top