storeSubset: Method for storing new assays in ExperimentSubset objects

Description Usage Arguments Value Examples

Description

Store a new subset assay inside a specified subset in the input ExperimentSubset object.

Usage

1
2
3
4
storeSubset(object, subsetName, inputMatrix, subsetAssayName)

## S4 method for signature 'ExperimentSubset'
storeSubset(object, subsetName, inputMatrix, subsetAssayName = NULL)

Arguments

object

ExperimentSubset Specify the input object.

subsetName

character(1) Specify the name of the existing subset inside which the new subset assay should be stored.

inputMatrix

dgCMatrix The input subset assay.

subsetAssayName

character(1) Specify the name of the new assay against the inputMatrix parameter. If NULL, a new subset is created internally using the createSubset function. Default NULL.

Value

Updated ExperimentSubset object with the new assay stored inside the specified subset.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")
counts1p <- assay(es, "subset1")
counts1p[,] <- counts1p[,] + 1
es <- storeSubset(es, "subset1", counts1p, "scaledSubset1")
es

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