calcTransEff | R Documentation |
Calculate translation efficiency given a Ribo- and RNA-seq sample, and a list of ORF ranges. Basically, RPKM values for Ribo- and RNA-seq samples are calculated first, and then the translation efficiency is calculated as the log2(riboRPKM + pseudoCount) - log2(rnaRPKM + pseudoCount) with pseudoCount being a small value to prevent producing Inf.
calcTransEff( riboBam, rnaBam, orfGRL, riboLibSize = length(riboBam), rnaLibSize = length(rnaBam), trimStart = 6, trimEnd = 6, ignoreStrand = TRUE, pseudoCount = 0.001 )
riboBam |
A |
rnaBam |
A |
orfGRL |
A |
riboLibSize |
A positive numeric variable indicating the library size of the Ribo-seq
reads. By default, we use the number of reads in |
rnaLibSize |
A positive numeric variable indicating the library size of the RNA-seq
reads. By default, we use the number of reads in |
trimStart |
A non-negative numeric variable indicating how many bases to trim for ORF start. (Default: 6). |
trimEnd |
A non-negative numeric variable indicating how many bases to trim for ORF end. (Default: 6). |
ignoreStrand |
A logical variable indicating if ignoring that reads and ORFs must be on the same strand. (Default: TRUE). |
pseudoCount |
A non-negative numeric variable specifying a small value added to the RPKMs calculated before taking log2 transformation in order to prevent producing Inf. (Default: 1e-03). |
A data.frame
with 7 columns, specified below: 1. Column 1 is ORF ID
(orfId
, either user specified in orfGRL
or internally generated); 2. Column
2 is trimmed ORF length (orfLenTrimmed
); 3. Column 3 and 4 are the read counts for
Ribo- and RNA-seq samples (countRibo
and countRNA
) in the trimmed ORF region,
respectively; Column 5 and 6 are the RPKM values for Ribo- and RNA-seq samples
(rpkmRibo
and rpkmRNA
), respectively; Column 7 is the calculated translation
efficiency (log2 transformed).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.