bed_fisher: Fisher's test to measure overlap between two sets of...

Description Usage Arguments Details Value See Also Examples

View source: R/bed_fisher.r

Description

Calculate Fisher's test on number of intervals that are shared and unique between two sets of x and y intervals.

Usage

1
bed_fisher(x, y, genome)

Arguments

x

tbl_interval()

y

tbl_interval()

genome

tbl_genome()

Details

Interval statistics can be used in combination with dplyr::group_by() and dplyr::do() to calculate statistics for subsets of data. See vignette('interval-stats') for examples.

Value

tbl_interval()

See Also

http://bedtools.readthedocs.org/en/latest/content/tools/fisher.html

Other interval statistics: bed_absdist, bed_jaccard, bed_projection, bed_reldist

Examples

1
2
3
4
5
6
genome <- read_genome(valr_example('hg19.chrom.sizes.gz'))

x <- bed_random(genome, seed = 1010486)
y <- bed_random(genome, seed = 9203911)

bed_fisher(x, y, genome)

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