altExps-set: Alternative Experiment methods for ExperimentSubset objects

Description Usage Arguments Value Examples

Description

A wrapper to the altExps<- from altExps method with additional support for subsets.

Usage

1
2
3
4
altExps(x, subsetName) <- value

## S4 replacement method for signature 'ANY'
altExps(x, subsetName) <- value

Arguments

x

ExperimentSubset Input ExperimentSubset object or any object supported by altExps<- from altExps method.

subsetName

character(1) Specify the name of the subset to which the altExps<- should be set to. If missing, altExps<- from altExps method is called on the main object.

value

list() Input value same as altExps<- from altExps method.

Value

Input object with altExps<- set.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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")
altExps(es, subsetName = "subset1") <- list(
alt1 = SingleCellExperiment(
assays = list(counts = assay(es, "subset1"))),
alt2 = SingleCellExperiment(
assays = list(counts = assay(es, "subset1"))))
altExpNames(es, subsetName = "subset1")

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