View source: R/ranges_helpers.R
subsetToFrame | R Documentation |
Usually used for ORFs to get specific frame (0-2): frame 0, frame 1, frame 2
subsetToFrame(x, frame)
x |
A tiled to size of 1 GRanges object |
frame |
A numeric indicating which frame to extract |
GRanges object should be beforehand tiled to size of 1. This subsetting takes account for strand.
GRanges object reduced to only first frame
subsetToFrame(GRanges("1", IRanges(1:10, width = 1), "+"), 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.