Learn R Programming

scater (version 1.0.4)

reducedDimension: Reduced dimension representation for cells in an SCESet object

Description

SCESet objects can contain a matrix of reduced dimension coordinates for cells. These functions conveniently access and replace the reduced dimension coordinates with the value supplied, which must be a matrix of the correct size. The function redDim is simply shorthand for reducedDimension.

Usage

reducedDimension(object)
reducedDimension(object) <- value
redDim(object)
redDim(object) <- value
reducedDimension.SCESet(object)
"reducedDimension"(object)
redDim.SCESet(object)
"redDim"(object)
"reducedDimension"(object) <- value
"redDim"(object) <- value

Arguments

object
a SCESet object.
value
a matrix of class "numeric" containing reduced dimension coordinates for cells.

Value

If accessing the reducedDimension slot, then the matrix of reduced dimension coordinates. If replacing the reducedDimension slot then the new matrix is added to the SCESet object.

Examples

Run this code
data("sc_example_counts")
data("sc_example_cell_info")
pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)
reducedDimension(example_sceset)

Run the code above in your browser using DataLab