rpkm2tpm | R Documentation |
Convert a RPKM matrix to a TPM matrix
rpkm2tpm(x)
x |
A count matrix or other objects that can be converted to a matrix
by |
transcripts per million (TPM) values
rpkm2tpm
testMatrix <- matrix(rnbinom(200, size=5, prob=0.1), nrow=20, ncol=10)
testMatrixGeneLen <- as.integer(10^rnorm(20, mean=3, sd=0.5))
testMatrixTpm <- tpm(testMatrix, testMatrixGeneLen)
testMatrixRpkm <- edgeR::rpkm(testMatrix, testMatrixGeneLen)
testthat::expect_equal(testMatrixTpm, rpkm2tpm(testMatrixRpkm))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.