reducedDims-set: Methods for Reduced Dimensions in ExperimentSubset objects

Description Usage Arguments Value Examples

Description

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

Usage

1
reducedDims(object, subsetName) <- value

Arguments

object

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

subsetName

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

value

list() A list of values to set to reducedDims.

Value

Updated input object with reducedDims set.

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")))
reducedDims(es, subsetName = "subset1")

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