altExp {ExperimentSubset}R Documentation

Alternative Experiment methods for ExperimentSubset objects

Description

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

Usage

altExp(x, e, withColData = FALSE, subsetName)

## S4 method for signature 'ANY'
altExp(x, e, withColData = FALSE, subsetName)

Arguments

x

ExperimentSubset Input ExperimentSubset object or any object supported by altExp from altExps method.

e

character(1) Same as altExp from altExps.

withColData

logical(1) Same as altExp from altExps. Default FALSE.

subsetName

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

Value

The altExp from the specified subset or same as altExp from altExps when subsetName is missing.

Examples

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")
altExp(es, e = "altExample",
subsetName = "subset1") <- SingleCellExperiment(
assays = list(counts = assay(es, "subset1")))
altExp(es, subsetName = "subset1")

[Package ExperimentSubset version 1.0.0 Index]