bootstraps {scater} | R Documentation

## Accessor and replacement for bootstrap results in a `SingleCellExperiment` object

### 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

    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

    example_sce <- mockSCE()
    bootstraps(example_sce)

[Package scater version 1.16.2 Index]