Size factors

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 2019-08-19.

See also

Examples

data( RangedSummarizedExperiment, SingleCellExperiment, package = "acidtest" ) ## SummarizedExperiment ==== object <- RangedSummarizedExperiment object <- estimateSizeFactors(object)
#> Calculating library size factors using 'mean-ratio' method.
#> Centering size factors at 1.
head(sizeFactors(object))
#> sample01 sample02 sample03 sample04 sample05 sample06 #> 0.8937279 0.8624615 0.8613519 0.8979285 0.8959867 0.8479577
mean(sizeFactors(object))
#> [1] 1
## SingleCellExperiment ==== object <- SingleCellExperiment object <- estimateSizeFactors(object)
#> Calculating library size factors using 'mean-ratio' method.
#> Centering size factors at 1.
head(sizeFactors(object))
#> cell001 cell002 cell003 cell004 cell005 cell006 #> 1.0892537 0.9441530 0.6772733 1.0512044 1.6634694 1.0191282
mean(sizeFactors(object))
#> [1] 1