calcRPKM | R Documentation |
Calculate read counts per kilo base per million reads (RPKM).
calcRPKM( bam, orfGRL, libSize = length(bam), trimStart = 6, trimEnd = 6, ignoreStrand = TRUE )
bam |
A |
orfGRL |
A |
libSize |
A positive numeric variable indicating the library size of the 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). |
A data.frame
with 4 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 is the read counts
(countORF
) in the trimmed ORF region; Column 4 is the RPKM value (rpkmORF
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.