bed_shuffle | R Documentation |
Shuffle input intervals.
bed_shuffle(
x,
genome,
incl = NULL,
excl = NULL,
max_tries = 1000,
within = FALSE,
seed = 0
)
x |
ivl_df |
genome |
genome_df |
incl |
ivl_df of included intervals |
excl |
ivl_df of excluded intervals |
max_tries |
maximum tries to identify a bounded interval |
within |
shuffle within chromosomes |
seed |
seed for reproducible intervals |
ivl_df
https://bedtools.readthedocs.io/en/latest/content/tools/shuffle.html
Other randomizing operations:
bed_random()
genome <- tibble::tribble(
~chrom, ~size,
"chr1", 1e6,
"chr2", 2e6,
"chr3", 4e6
)
x <- bed_random(genome, seed = 1010486)
bed_shuffle(x, genome, seed = 9830491)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.