subsetDim: Get dimensions of subsets in ExperimentSubset objects

Description Usage Arguments Value Examples

Description

Retrieves the dimensions of the specified subset in an ExperimentSubset object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
subsetDim(x, subsetName)

## S4 method for signature 'SubsetRangedSummarizedExperiment,character'
subsetDim(x, subsetName)

## S4 method for signature 'SubsetSingleCellExperiment,character'
subsetDim(x, subsetName)

## S4 method for signature 'SubsetSummarizedExperiment,character'
subsetDim(x, subsetName)

## S4 method for signature 'SubsetSpatialExperiment,character'
subsetDim(x, subsetName)

## S4 method for signature 'SubsetTreeSummarizedExperiment,character'
subsetDim(x, subsetName)

Arguments

x

ExperimentSubset Input ExperimentSubset object.

subsetName

character(1) Name of the subset to retrieve the dimensions from.

Value

A vector containing the dimensions of the specified subset i.e. the number of rows and the number of columns in the subset.

Examples

1
2
3
4
5
6
7
8
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")
subsetDim(es, "subset1")

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