Learn R Programming

scater (version 1.0.4)

bootstraps: Accessor and replacement for bootstrap results in an SCESet object

Description

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

Usage

bootstraps(object)
bootstraps(object) <- value
bootstraps.SCESet(object)
"bootstraps"(object)
"bootstraps"(object) <- value

Arguments

object
a SCESet object.
value
an array of class "numeric" containing bootstrap expression values

Value

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

Examples

Run this code
data("sc_example_counts")
data("sc_example_cell_info")
pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)
bootstraps(example_sceset)

Run the code above in your browser using DataLab