expData Get data item from an input SingleCellExperiment object. The data item can be an assay, altExp (subset) or a reducedDim, which is retrieved based on the name of the data item.

expData(inSCE, assayName)

Arguments

inSCE

Input SingleCellExperiment object.

assayName

Specify the name of the data item to retrieve.

Value

Specified data item.

Examples

data(scExample, package = "singleCellTK")
mat <- expData(sce, "counts")