librarySizeFactors {scater} | R Documentation

## Compute library size factors

### Description

Define size factors from the library sizes after centering. This ensures that the library size adjustment yields values comparable to those generated after normalization with other sets of size factors.

### Usage

    librarySizeFactors(object, exprs_values = "counts")

### Arguments

`object` | A count matrix or SingleCellExperiment object containing counts.
`exprs_values` | A string indicating the assay of `object` containing the counts, if `object` is a SingleCellExperiment.

### Value

A numeric vector of size factors.

### Examples

    data("sc_example_counts")
    summary(librarySizeFactors(sc_example_counts))

[Package scater version 1.8.4 Index]