powered by
resampleRegions(A, universe, per.chromosome=FALSE, ...)
toGRanges
GenomicRanges
data.frame
univers
toDataframe
randomizeRegions
createRandomRegions
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)
Run the code above in your browser using DataLab