randomRegions.Rd
Generate random regions
randomRegions(genome = NULL, nr = 1000, seqlengths = NULL,
width_fun = function(n) runif(n, min = 1000, max = 10000))
UCSC genome version, e.g. "hg19".
Number of regions.
Alternatively, you can also specify a named vector of seqlengths (chromosome lengths).
A function which defines the distribution of region widths.
The number of regions per chromosome is proportional to the chromsome length.
gr = randomRegions(genome = "hg19")
quantile(width(gr))
#> 0% 25% 50% 75% 100%
#> 1038.00 3356.50 5723.50 7889.25 10001.00