Learn R Programming

scater (version 1.0.4)

cpm: Accessors for the 'cpm' (counts per million) element of an SCESet object.

Description

The cpm element of the arrayData slot in an SCESet object holds a matrix containing counts-per-million values. It has the same dimensions as the 'exprs' and 'counts' elements, which hold the transformed expression data and count data, respectively.

Usage

cpm(object)
cpm(object) <- value
"cpm"(object)
"cpm"(object)<-value
"cpm"(object)
"cpm"(object) <- value

Arguments

object
a SCESet object.
value
a matrix of class "numeric"

Value

a matrix of counts-per-million values

Examples

Run this code
data("sc_example_counts")
data("sc_example_cell_info")
example_sceset <- newSCESet(countData=sc_example_counts)
cpm(example_sceset)[1:10, 1:6]

Run the code above in your browser using DataLab