View source: R/counts_to_TPM.R
counts_to_tpm | R Documentation |
Convert a numeric matrix of features (rows) and conditions (columns) with raw feature counts to transcripts per million.
counts_to_tpm(counts, featureLength, meanFragmentLength = rep(1, ncol(counts)))
counts |
A numeric matrix of raw feature counts i.e. fragments assigned to each gene. |
featureLength |
A numeric vector with feature lengths. |
meanFragmentLength |
A numeric vector with mean fragment lengths. |
Lior Pachter. Models for transcript quantification from RNA-Seq. arXiv:1104.3889v2
Wagner, et al. Measurement of mRNA abundance using RNA-seq data: RPKM measure is inconsistent among samples. Theory Biosci. 24 July 2012. doi:10.1007/s12064-012-0162-3
Source for the code: https://gist.github.com/slowkow/c6ab0348747f86e2748b
tpm A numeric matrix normalized by library size and feature length.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.