assay-set-ExperimentSubset-character-method: Setter method for assays in ExperimentSubset objects

Description Usage Arguments Value Examples

Description

Method to set an assay to an ExperimentSubset object or a subset from an ExperimentSubset object or any object supported by assay<- from SummarizedExperiment.

Usage

1
2
## S4 replacement method for signature 'ExperimentSubset,character'
assay(x, i, withDimnames = FALSE, subsetAssayName = NULL, ...) <- value

Arguments

x

ExperimentSubset Input ExperimentSubset object or any object supported by assay from SummarizedExperiment.

i

character(1) Name of an assay or name of the subset if storing to an ExperimentSubset object.

withDimnames

logical(1) Set whether dimnames should be applied to assay. Default FALSE.

subsetAssayName

character(1) Name of the assay to store if storing to an ExperimentSubset object.

...

Additional parameters.

value

dgCMatrix The assay to store.

Value

Input object with assay stored.

Examples

1
2
3
4
5
6
7
8
9
data(sce_chcl, package = "scds")
es <- ExperimentSubset(sce_chcl)
es <- createSubset(es, "subset1",
rows = c(10,11,50,56,98,99,102,105,109, 200),
cols = c(20,21,40,45,90,99,100,123,166,299),
parentAssay = "counts")
assay(es, "subset1",
subsetAssayName = "subset1pAssay") <- assay(es, "subset1")[,] + 1
es

ExperimentSubset documentation built on Nov. 8, 2020, 5:03 p.m.