genomic_corr_reldist: Relative distance between two sets of genomic regions

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Relative distance between two sets of genomic regions

Usage

1
genomic_corr_reldist(query, reference)

Arguments

query

genomic region 1, a GRanges object

reference

genomic region 2, a GRanges object

Details

For regions in query and reference, they are all degenerated as single points which are the middle points of regions. For each middle point in query, it looks for two nearest points in reference on its left and right. The statistic is defined as the ratio of the distance to the nearest neighbour point to the distance of two neighbour points. If query and reference are not correlated at all, It is expected that the ratio follows a uniform distribution. So final statisitic are the KS-statistic between the real distribution of rations to the uniform distribution.

Value

A single correlation value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

References

Favoriv A, et al. Exploring massive, genome scale datasets with the GenometriCorr package. PLoS Comput Biol. 2012 May; 8(5):e1002529

See Also

genomic_regions_correlation

Examples

1
2
3
gr1 = GRanges(seqnames = "chr1", ranges = IRanges(c(1, 5), c(3, 8)))
gr2 = GRanges(seqnames = "chr1", ranges = IRanges(c(2, 6), c(4, 8)))
genomic_corr_reldist(gr1, gr2)

eilslabs/epic documentation built on May 16, 2019, 1:24 a.m.