Description Usage Arguments Value Examples
Example: GRanges
with genomic coordinates 1:1,000,0001,001,000 can get the first 20 and last 50 bases trimmed off with
start = 20, end = 950
.
if end is larger than the width of the corresponding gr, then the corresponding output will only have end(gr)
as its coordinate.
This is a role not currently provided by the standard GenomicRanges
functions
(e.g. shift
, reduce
, restrict
, shift
, resize
, flank
)
1  gr.trim(gr, starts = 1, ends = 1)

gr 

starts 
integer Beginning of interval trimmed; Number of bases to trim off of the front 
ends 
integer End of interval trimmed 
GRanges with trimmed intervals relative to the specified <local> coordinates of each range
1 2 3 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.