get.random.regions {bedr} | R Documentation |
generates a set of random regions
Description
generates a set of random regions for a specific species/build. Choices are human (hg18, hg19), mouse(mm9, mm10). regions are sampled from a log-normal distribution.
Usage
get.random.regions(
n = 10,
chr = NULL,
species = "human",
build = "hg19",
size.mean = 10,
size.sd = 0.25,
mask.gaps = FALSE,
mask.repeats = FALSE,
sort.output = TRUE,
verbose = TRUE
)
Arguments
n |
number of regions |
chr |
the chr or region |
species |
species |
build |
build |
size.mean |
region mean in log space |
size.sd |
region sd in log space |
mask.gaps |
should the gaps (Ns) in the human reference be ignored as potential start points. This drammatically increases memory and run time but is more appropriate in almost all settings. By default it's off. |
mask.repeats |
should the repeats from repeatMasker be ignored as potential start points. This drammatically increases memory and run time but is more appropriate in almost all settings. By default it's off. |
sort.output |
return a sorted index |
verbose |
words |
Author(s)
Daryl Waggott
Examples
test.regions <- get.random.regions(100)
[Package bedr version 1.0.7 Index]