bed_shuffle: Shuffle input intervals.

Description Usage Arguments Value See Also Examples

View source: R/bed_shuffle.r

Description

Shuffle input intervals.

Usage

1
2
bed_shuffle(x, genome, incl = NULL, excl = NULL, max_tries = 1000,
  within = FALSE, seed = 0)

Arguments

x

tbl_interval()

genome

tbl_genome()

incl

tbl_interval() of included intervals

excl

tbl_interval() of excluded intervals

max_tries

maximum tries to identify a bounded interval

within

shuffle within chromosomes

seed

seed for reproducible intervals

Value

tbl_interval()

See Also

http://bedtools.readthedocs.io/en/latest/content/tools/shuffle.html

Other randomizing operations: bed_random

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
genome <- trbl_genome(
 ~chrom, ~size,
 "chr1", 1e6,
 "chr2", 2e6,
 "chr3", 4e6
)

x <- bed_random(genome, seed = 1010486)

bed_shuffle(x, genome, seed = 9830491)

rnabioco/valr documentation built on Jan. 6, 2019, 9:06 a.m.