getPeakDistances: Compute distance between peaks

View source: R/local_correlations.R

getPeakDistancesR Documentation

Compute distance between peaks

Description

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

Usage

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

library(GenomicRanges)

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

getPeakDistances( query )


GabrielHoffman/decorate documentation built on May 23, 2023, 1:29 a.m.