View source: R/MODULE_3_QC_PCA.R
create_te | R Documentation |
Function to create a TE (translational efficiency) data frame from a combined RNA+RPF data frame.
create_te(x, idcolumns = NULL, rnacolumns, rpfcolumns)
x |
Input data frame containing RNA-seq or Ribo-seq data. Rows are genes/transcripts and columns are samples. The data.frame may contain additional columns for gene/transcript ID or other metadata. |
idcolumns |
A vector specifying the columns to be excluded from the calculations. These columns may contain the gene/transcript ID or any metadata that need to be preserved. |
rnacolumns |
A vector specifying the columns containing RNA counts |
rpfcolumns |
A vector specifying the columns containing RPF counts |
Translational efficiency is calculated as RPF/RNA. The number and order of samples must be the same in RNA and RPF columns.
A data frame containing the original ID columns and the calculated TE columns.
te_LMCN <- create_te(rr_LMCN.v2, 1, c(2:9), c(10:17))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.