tpm {autonomics} | R Documentation |
Get / Set tpm matrix
tpm(object) ## S4 method for signature 'SummarizedExperiment' tpm(object) tpm(object) <- value ## S4 replacement method for signature 'SummarizedExperiment,matrix' tpm(object) <- value ## S4 replacement method for signature 'SummarizedExperiment,numeric' tpm(object) <- value
object |
SummarizedExperiment |
value |
tpm matrix (features x samples) |
tpm matrix (get) or updated object (set)
file <- download_data('billing19.rnacounts.txt') object <- read_rnaseq_counts(file, plot=FALSE) tpm(object) <- values(object) tpm(object)[1:3, 1:3]