Transcripts per million
Details
Both gene- and transcript-level counts are supported, as long as they were imported using a tximport caller (e.g. salmon, kallisto).
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"