latentSpace<- {CellTrails} | R Documentation |
Set CellTrails' latent space to a SingleCellExperiment
object.
latentSpace(object) <- value
object |
A |
value |
A numeric matrix with rows are samples and columns are components |
Rows need to be samples and columns to be d components (spanning the lower-dimensional latent space).
An updated object of class SingleCellExperiment
Daniel C. Ellwanger
SingleCellExperiment
reducedDim
# Example data data(exSCE) # Set latent space latentSpace(exSCE) <- pca(exSCE)$components[, seq_len(10)]