getEmb | R Documentation |
Extract the cell embedding coordinates from the dimensionality reduction results stored in the single-cell data object containing the input data for scClustViz visualization.
getEmb(x, DRtype)
x |
The single-cell data object. |
DRtype |
The slot name (generally acronym of the DR method) where the cell coordinates are stored, case-insensitive. |
This is a wrapper function to the relevant class's cell metadata slot accessor / assignment method. Currently supported input object classes:
Class seurat/Seurat
accessed by
x@DRtype.rot
or x@dr$DRtype@cell.embeddings
or
x@reductions$DRtype@cell.embeddings
,
depending on Seurat object version.
Class SingleCellExperiment
accessed by reducedDim(x,DRtype)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.