shiftReads | R Documentation |
Shift the 5'-end of reads of towards downstream direction. Ribosome profiling reads are known to have P-site offset. Reads on the positive strand will be shifted to the right, and reads on the negative strand will be shifted to the left.
shiftReads(bam, readLens = NULL, shiftLens = NULL, fiveEndOnly = TRUE)
bam |
A |
readLens |
A vector of read lengths to use (positive). If |
shiftLens |
A vector of shift size (non-negative) for each read length.
If |
fiveEndOnly |
A logical variable indicating if only keeping the shifted 5'-end. (Default: TRUE). |
If fiveEndOnly
is TRUE
, return a GRanges
object of shifted
reads. Otherwise, return a GAlignments
object of shifted reads.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.