Shuffle input intervals.
bed_shuffle(x, genome, incl = NULL, excl = NULL, max_tries = 1000, within = FALSE, seed = 0)
tbl_interval()
tbl_genome()
tbl_interval() of included intervals
tbl_interval() of excluded intervals
maximum tries to identify a bounded interval
shuffle within chromosomes
seed for reproducible intervals
http://bedtools.readthedocs.io/en/latest/content/tools/shuffle.html
Other randomizing operations: bed_random
bed_random
# NOT RUN { genome <- trbl_genome( ~chrom, ~size, "chr1", 1e6, "chr2", 2e6, "chr3", 4e6 ) x <- bed_random(genome, seed = 1010486) bed_shuffle(x, genome, seed = 9830491) # }
Run the code above in your browser using DataCamp Workspace