View source: R/local_correlations.R
getPeakDistances | R Documentation |
Given a query set of genome intervals, report distance to all others within window
getPeakDistances(query, windowSize = 10000)
query |
GRanges object of intervals to query |
windowSize |
with of window around each interval in bp |
A smaller window size will create a covariance matrix that is faster to evaluate, but larger windows give a better approximation and are less likely to have negative eigen value
for all pairs of peaks within windowSize, report distance
library(GenomicRanges)
query = GRanges(rep('chr1', 5), IRanges(1:5, 1:5))
getPeakDistances( query )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.