gr.rand | R Documentation |
GRanges
on genomeRandomly generates non-overlapping GRanges
with supplied widths on supplied genome.
Seed can be supplied with set.seed
gr.rand(w, genome)
w |
vector of widths (length of |
genome |
GRanges, GRangesList, or Seqinfo genome. Default is "hg19" from the |
GRanges
with random intervals on the specifed "chromosomes"
This function is currently quite slow, needs optimization
Marcin Imielinski
Sys.setenv(DEFAULT_GENOME = "http://mskilab.com/gUtils/hg19/hg19.chrom.sizes")
## Generate 5 non-overlapping regions of width 10 on hg19
gr.rand(rep(10,5), si2gr(hg_seqlengths()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.