calculateCPM: Calculate counts per million (CPM)

Description Usage Arguments Value Examples

View source: R/calculate-expression.R

Description

Calculate count-per-million (CPM) values from the count data.

Usage

1
calculateCPM(object, use.size.factors = TRUE)

Arguments

object

an SCESet object

use.size.factors

a logical scalar specifying whether the size factors should be used to construct effective library sizes, or if the library size should be directly defined as the sum of counts for each cell.

Value

Matrix of CPM values.

Examples

1
2
3
4
data("sc_example_counts")
data("sc_example_cell_info")
example_sceset <- newSCESet(countData = sc_example_counts)
cpm(example_sceset) <- calculateCPM(example_sceset)

dynverse/scaterlegacy documentation built on Feb. 17, 2020, 5:07 a.m.