getPeakDistances: Compute distance between peaks

Description Usage Arguments Details Value Examples

View source: R/local_correlations.R

Description

Given a query set of genome intervals, report distance to all others within window

Usage

1
getPeakDistances(query, windowSize = 10000)

Arguments

query

GRanges object of intervals to query

windowSize

with of window around each interval in bp

Details

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

Value

for all pairs of peaks within windowSize, report distance

Examples

1
2
3
4
5
library(GenomicRanges)

query = GRanges(rep('chr1', 5), IRanges(1:5, 1:5))

getPeakDistances( query )

GabrielHoffman/decorate documentation built on July 26, 2021, 12:18 a.m.