Description Usage Arguments Value See Also Examples
View source: R/resampleRegions.R
Function for sampling a region set from a univers of region sets.
1 | resampleRegions(A, universe, per.chromosome=FALSE, ...)
|
A |
a region set in any of the formats accepted by |
universe |
a region set in any of the formats accepted by |
per.chromosome |
boolean indicating if sample must be by chromosome. |
... |
further arguments to be passed to or from methods. |
a GenomicRanges
object. A sample from the univers
with the same length as A.
toDataframe
, toGRanges
, randomizeRegions
, createRandomRegions
1 2 3 4 5 6 | universe <- data.frame(chr=1, start=c(1,15,24,40,50), end=c(10,20,30,45,55))
A <- data.frame(chr=1, start=c(2,12,28,35), end=c(5,25,33,43))
resampleRegions(A, universe, per.chromosome=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.