Skip to contents

Transcripts per million

Usage

tpm(object, ...)

# S4 method for SummarizedExperiment
tpm(object)

Arguments

object

Object.

...

Additional arguments.

Value

matrix.

Details

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

Note

Updated 2021-02-03.

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" "array"