counts2cpm | R Documentation |
Convert between counts and cpm/tpm
counts2cpm(x, libsize = scaledlibsizes(x))
cpm2counts(x, libsize)
x |
count/cpm matrix |
libsize |
(scaled) libsize vector |
cpm/tpm/count matrix
file <- system.file('extdata/billing19.rnacounts.txt', package = 'autonomics')
object <- read_rnaseq_counts(file)
libsize <- scaledlibsizes(counts(object))
tpm <- counts2tpm(counts(object), genesize = 1)
cpm <- counts2cpm(counts(object), libsize)
counts <- cpm2counts(cpm, libsize)
sum(counts(object) - counts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.