reducedDimNames: reducedDimNames

Description Usage Arguments Value Examples

Description

A wrapper to the reducedDimNames from reducedDims method with additional support for subsets.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
reducedDimNames(x, ...)

## S4 method for signature 'ANY'
reducedDimNames(x, ...)

## S4 method for signature 'ANY'
reducedDimNames(x, ...)

## S4 method for signature 'ANY'
reducedDimNames(x, ...)

Arguments

x

Input ExperimentSubset object or any object supported by reducedDimNames from reducedDims method.

...

Additional arguments to pass to into the SCE method.

Value

The reducedDimNames from the specified subset or same as reducedDimNames from reducedDims when subsetName is missing.

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(1:1500), cols = c(1:1500),
parentAssay = "counts")
reducedDims(es, subsetName = "subset1") <- list(
PCA_1 = scater::calculatePCA(assay(es, "subset1")),
PCA_2 = scater::calculatePCA(assay(es, "subset1")))
reducedDimNames(es, subsetName = "subset1")

campbio/ExperimentSubset documentation built on Sept. 10, 2021, 3:09 p.m.