Transcripts per million

# S4 method for SummarizedExperiment
tpm(object)

Arguments

object

Object.

Value

matrix.

Note

Both gene- and transcript-level counts are supported, as long as they were imported using a tximport caller (e.g. salmon, kallisto).

Updated 2019-08-06.

Examples

se <- SummarizedExperiment::SummarizedExperiment( assays = list( tpm = matrix( data = seq_len(4L), nrow = 2L, ncol = 2L, byrow = TRUE ) ) ) x <- tpm(se) class(x)
#> [1] "matrix"