Description Usage Arguments Details Value Author(s) Examples
View source: R/convertCounts.R
Use this to calculate TPM for a heavily subsetted DGEobj. It calculates TPM using the original data but returns a DGEobj with the subset.
1 | tpm.on.subset(dgeo, applyFilter = TRUE)
|
dgeo |
A DGEobj data structure |
applyFilter |
If TRUE, reduces to the filtered gene list. FALSE returns all genes in the raw data. [Default = TRUE] |
Takes a DGEObj as input. Uses all data (pre-genefiltering; counts_orig) to calculate TPM values. Then optionally filters any genes that were already filtered out.
For GeneLength in the calculation, it takes geneData$ExonLength (for Omicsoft data) or uses rowMeans(effectiveLength) for data derived from Xpress.
Internally it uses edgeR::fpkm to calculate fpkm and converts to tpm using the formula provided by [Harold Pimental](https://haroldpimentel.wordpress.com/2014/05/08/what-the-fpkm-a-review-rna-seq-expression-units/).
A matrix in the new unit space
John Thompson, jrt@thompsonclan.org
1 | myTPM <- tpm(dgeobj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.