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", subset_row = NULL)

### 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.
`subset_row` | A vector specifying whether the rows of `object` should be (effectively) subsetted before calculating library sizes.

### Value

A numeric vector of size factors.

### Examples

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

[Package scater version 1.12.2 Index]