bed_projection: Projection test for query interval overlap.

Description Usage Arguments Details Value See Also Examples

View source: R/bed_projection.r

Description

Projection test for query interval overlap.

Usage

1
bed_projection(x, y, genome, by_chrom = FALSE)

Arguments

x

tbl_interval()

y

tbl_interval()

genome

tbl_genome()

by_chrom

compute test per chromosome

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() with the following columns:

See Also

http://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1002529

Other interval statistics: bed_absdist, bed_fisher, bed_jaccard, bed_reldist

Examples

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

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

bed_projection(x, y, genome)

bed_projection(x, y, genome, by_chrom = TRUE)

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