expData-ANY-character-method: expData Get data item from an input 'SingleCellExperiment'...

expData,ANY,character-methodR Documentation

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.

Description

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.

Usage

## S4 method for signature 'ANY,character'
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")

compbiomed/singleCellTK documentation built on Oct. 27, 2024, 3:26 a.m.