bootstraps: Accessor and replacement for bootstrap results in a...

Description Usage Arguments Value Author(s) Examples

Description

SingleCellExperiment objects can contain bootstrap expression values (for example, as generated by the kallisto software for quantifying feature abundance). These functions conveniently access and replace the 'bootstrap' elements in the assays slot with the value supplied, which must be an matrix of the correct size, namely the same number of rows and columns as the SingleCellExperiment object as a whole.

Usage

1
2
3
4
5
6
7
8
9
bootstraps(object)

bootstraps(object) <- value

## S4 method for signature 'SingleCellExperiment'
bootstraps(object)

## S4 replacement method for signature 'SingleCellExperiment,array'
bootstraps(object) <- value

Arguments

object

a SingleCellExperiment object.

value

an array of class "numeric" containing bootstrap expression values

Value

If accessing bootstraps slot of an SingleCellExperiment, then an array with the bootstrap values, otherwise an SingleCellExperiment object containing new bootstrap values.

Author(s)

Davis McCarthy

Examples

1
2
example_sce <- mockSCE()
bootstraps(example_sce)

scater documentation built on Feb. 28, 2021, 2:01 a.m.