subsetRowData: Accessor method for rowData from subsets in ExperimentSubset...

Description Usage Arguments Value Examples

Description

Get rowData from a subset.

Set rowData to a subset.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
subsetRowData(x, subsetName, parentRowData)

subsetRowData(x, subsetName) <- value

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

## S4 replacement method for signature 
## 'SubsetRangedSummarizedExperiment,character,DataFrame'
subsetRowData(x, subsetName) <- value

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

## S4 replacement method for signature 'SubsetSingleCellExperiment,character,DataFrame'
subsetRowData(x, subsetName) <- value

## S4 replacement method for signature 'SubsetSummarizedExperiment,character,DataFrame'
subsetRowData(x, subsetName) <- value

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

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

## S4 replacement method for signature 'SubsetSpatialExperiment,character,DataFrame'
subsetRowData(x, subsetName) <- value

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

## S4 replacement method for signature 'SubsetTreeSummarizedExperiment,character,DataFrame'
subsetRowData(x, subsetName) <- value

Arguments

x

ExperimentSubset Input ExperimentSubset object.

subsetName

character(1) Name of the subset to set rowData to.

parentRowData

logical(1) Logical value indicating if parent rowData should be combined or not. Default FALSE.

value

Input DataFrame to store.

Value

The rowData from input object.

Input object with rowData stored.

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")
subsetRowData(es, "subset1")

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