latentSpace<- {CellTrails} | R Documentation

## SET latent space

### Description

Set CellTrails' latent space to a `SingleCellExperiment` object.

### Usage

    latentSpace(object) <- value

### Arguments

`object` | A `SingleCellExperiment` object
`value` | A numeric matrix with rows are samples and columns are components

### Details

Rows need to be samples and columns to be d components (spanning the lower-dimensional latent space).

### Value

An updated object of class `SingleCellExperiment`

### Author(s)

Daniel C. Ellwanger

### See Also

`SingleCellExperiment` `reducedDim`

### Examples

    # Example data
    data(exSCE)

    # Set latent space
    latentSpace(exSCE) <- pca(exSCE)$components[, seq_len(10)]

[Package CellTrails version 1.5.0 Index]