View source: R/dimGeometries.R
colGeometries | R Documentation |
colGeometries
are geometries that correspond to columns of the gene
count matrix, such as Visium spots or cells. Same as dimGeometry(x,
MARGIN = 2L, ...)
, with convenience wrappers for getters and setters of
special geometries:
Polygons of spots from technologies such as Visium, ST, and
slide-seq, which do not correspond to cells. Centroids of the polygons are
stored in spatialCoords
of the underlying SpatialExperiment
object.
Polygons of regions of interest (ROIs) from technologies such as laser capture microdissection (LCM) and GeoMX DSP. These should correspond to columns of the gene count matrix.
Cell segmentation polygons. If the columns of the gene count
matrix are single cells, then this is stored in colGeometries
.
Otherwise, this is stored in annotGeometries
.
Similar to cellSeg
, but for nuclei rather than whole
cell.
colGeometry(x, type = 1L, sample_id = 1L, withDimnames = TRUE)
colGeometry(
x,
type = 1L,
sample_id = 1L,
withDimnames = TRUE,
translate = TRUE
) <- value
colGeometries(x, withDimnames = TRUE)
colGeometries(x, withDimnames = TRUE, translate = TRUE) <- value
colGeometryNames(x)
colGeometryNames(x) <- value
spotPoly(x, sample_id = 1L, withDimnames = TRUE)
spotPoly(x, sample_id = 1L, withDimnames = TRUE, translate = TRUE) <- value
centroids(x, sample_id = 1L, withDimnames = TRUE)
centroids(x, sample_id = 1L, withDimnames = TRUE, translate = TRUE) <- value
ROIPoly(x, sample_id = 1L, withDimnames = TRUE)
ROIPoly(x, sample_id = 1L, withDimnames = TRUE, translate = TRUE) <- value
cellSeg(x, sample_id = 1L, withDimnames = TRUE)
cellSeg(x, sample_id = 1L, withDimnames = TRUE, translate = TRUE) <- value
nucSeg(x, sample_id = 1L, withDimnames = TRUE)
nucSeg(x, sample_id = 1L, withDimnames = TRUE, translate = TRUE) <- value
x |
A |
type |
An integer specifying the index or string specifying the name of the *Geometry to query or replace. If missing, then the first item in the *Geometries will be returned or replaced. |
sample_id |
Sample ID to get or set geometries. |
withDimnames |
Logical. If |
translate |
Logical. Only used if |
value |
Value to set. For |
[dimGeometries()], [rowGeometries()]
library(SFEData)
sfe <- McKellarMuscleData(dataset = "small")
cgs <- colGeometries(sfe)
spots <- spotPoly(sfe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.