Central S4 class for storing and analysing single-cell spatial biology data. Inspired by the Seurat object design, it holds raw and normalised marker intensities, spatial coordinates, cell-level metadata, and results from spatial analyses in a single container.
Details
Raw and normalized matrices must have identical dimensions and
row/marker names. They contain real numeric values; NA and NaN are
allowed, infinity is not. Coordinates are finite real numeric vectors, and
coordinate/metadata row counts must agree even for empty objects.
Slots
countsNumeric matrix of raw marker intensities (cells x markers).
dataNumeric matrix of normalised marker intensities (cells x markers). Identical to
countsuntilNormaliseDatais called.coordsData frame with columns
xandyholding spatial coordinates for each cell. Two-dimensional spatial analyses select these axes by name, independently of column order. Additional coordinate columns are retained in the object but do not enter those analyses.meta_dataData frame of per-cell metadata. Always contains
cell_idandsample_id. Additional columns such ascell_area,phenotype, orclusterare added by analysis functions.projectCharacter string. Project or experiment name.
spatialList for storing spatial analysis results (nearest-neighbour distances, density values, interaction matrices).
reductionsNamed list of dimensionality-reduction embeddings. Each element is a numeric matrix with one row per cell (e.g.
"pca","umap","tsne","song"), as produced byRunPCA,RunUMAP,RunTSNE, orRunSONG.