addAssayToESE
addAssayToESE.Rd
Adds an assay of signal matrices to an existing `EnrichmentSE` object.
Arguments
- x
An object of class `EnrichmentSE`, as produced by
signal2Matrix
.- a
The assay to add, e.g. a list of normalizedMatrix objects
- name
- replace
Logical, whether to replace any existing assay of the same name (default TRUE). If FALSE and the assay already existed, the new assay name is given a suffix.
Examples
# we first get an EnrichmentSE object:
data(exampleESE)
# then we will create a new assay which is simply sqrt-transformed, and add
# it back in the object
newAssay <- lapply(getSignalMatrices(x), sqrt)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'X' in selecting a method for function 'lapply': object 'x' not found
exampleESE <- addAssayToESE(exampleESE, newAssay, named="sqrt")
#> Error in addAssayToESE(exampleESE, newAssay, named = "sqrt"): unused argument (named = "sqrt")