reposition | R Documentation |
move all ranges in a GRanges to randomly chosen chromosomes with new starting positions
reposition(gr, backoff = -20000)
gr |
a |
backoff |
an integer in bases to move a range whose end hangs over end of chromosome |
Purpose is to obtain a set of ranges with widths identical
to gr
, but randomly relocated over the genome
A GRanges
It would be nice to be able to reposition to locations that are remote but that share certain characteristics like GC proportion ...
Currently if a chromosome is not represented in gr
it is not a candidate for hosting a repositioned range.
set.seed(1234) gr = GRanges(c("chr1", "chr4"), IRanges(c(50000, 100000), c(100000, 200000))) reposition(gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.