Description Usage Arguments Details Value See Also Examples
View source: R/bed_projection.r
Projection test for query interval overlap.
1  bed_projection(x, y, genome, by_chrom = FALSE)

x 

y 

genome 

by_chrom 
compute test per chromosome 
Interval statistics can be used in combination with
dplyr::group_by()
and dplyr::do()
to calculate
statistics for subsets of data. See vignette('intervalstats')
for
examples.
tbl_interval()
with the following columns:
chrom
the name of chromosome tested if by_chrom = TRUE
,
otherwise has a value of whole_genome
p.value
pvalue from a binomial test. pvalues > 0.5
are converted to 1  pvalue
and lower_tail
is FALSE
obs_exp_ratio
ratio of observed to expected overlap frequency
lower_tail
TRUE
indicates the observed overlaps are in the lower tail
of the distribution (e.g., less overlap than expected). FALSE
indicates
that the observed overlaps are in the upper tail of the distribution (e.g.,
more overlap than expected)
http://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1002529
Other interval statistics: bed_absdist
,
bed_fisher
, bed_jaccard
,
bed_reldist
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)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.