Description Usage Arguments Details Value Author(s) Examples
Takes a counts and genelength as input and converts to tpm units using the equation from [Harold Pimental](https://haroldpimentel.wordpress.com/2014/05/08/what-the-fpkm-a-review-rna-seq-expression-units/).
1 | tpm.direct(counts, genelength, collapse = FALSE)
|
counts |
A numeric matrix of N genes x M Samples. All columns must be numeric. |
collapse |
T/F determines whether to use rowMeans on the genelength matrix [Default = FALSE] |
geneLength |
A vector or matrix of gene lengths. |
The result should be the same as using convertCounts with normalize='tpm' and log=FALSE
Genelength can be a vector (length == nrow(counts) or a matrix (same dim as counts). The genelength is used as is, or optionally collapsed to a vector by rowMeans.
A matrix of TPM values
John Thompson, jrt@thompsonclan.org
1 | myTPM <- tpm.classic(mycounts, mygenelength)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.