expData-set-ANY-character-CharacterOrNullOrMissing-logical-method: expData Store data items using tags to identify the type of...

expData<-,ANY,character,CharacterOrNullOrMissing,logical-methodR Documentation

expData Store data items using tags to identify the type of data item stored. To be used as a replacement for assay<- setter function but with additional parameter to set a tag to a data item.

Description

expData Store data items using tags to identify the type of data item stored. To be used as a replacement for assay<- setter function but with additional parameter to set a tag to a data item.

Usage

## S4 replacement method for signature 'ANY,character,CharacterOrNullOrMissing,logical'
expData(inSCE, assayName, tag = NULL, altExp = FALSE) <- value

Arguments

inSCE

Input SingleCellExperiment object.

assayName

Specify the name of the input assay.

tag

Specify the tag to store against the input assay. Default is NULL, which will set the tag to "uncategorized".

altExp

A logical value indicating if the input assay is a altExp or a subset assay.

value

An input matrix-like value to store in the SCE object.

Value

A SingleCellExperiment object containing the newly stored data.

Examples

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

compbiomed/singleCellTK documentation built on Feb. 10, 2024, 3:32 a.m.