Skip to contents

Size factors

Usage

sizeFactors(object, ...)

sizeFactors(object, ...) <- value

# S4 method for SummarizedExperiment
sizeFactors(object)

# S4 method for SummarizedExperiment
sizeFactors(object) <- value

Arguments

object

Object.

value

Value to assign.

...

Additional arguments.

Value

numeric. Names correspond to object column names.

Note

Updated 2021-02-04.

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
object <- RangedSummarizedExperiment
object <- estimateSizeFactors(object)
#> → Calculating library size factors using "mean-ratio" method defined in `type`.
#> → Centering size factors at 1.
head(sizeFactors(object))
#>  sample01  sample02  sample03  sample04  sample05  sample06 
#> 0.8884556 0.8875975 0.8836681 0.9034507 0.9048508 0.9085092 
mean(sizeFactors(object))
#> [1] 1