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 #> 0.8251116 0.8941871 0.8485451 0.8576735 0.9074252 #> sample06 #> 0.8962024
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 #> 0.8126923 1.2351486 1.2943494 1.0557070 1.0792347 #> cell006 #> 0.8452250
mean(sizeFactors(object))
#> [1] 1