merge_ranges: Merge peaks and regions GRanges

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Merge two GRanges objects by overlaps

Usage

1
merge_ranges(peaks, regions)

Arguments

peaks

A GRanges object

regions

A GRanges object

Value

A DataFrame

Examples

1
2
3
4
5
library(IRanges)

query <- IRanges(c(1, 4, 9), c(5, 7, 10))
subject <- IRanges(c(2, 2, 10), c(2, 3, 12))
mergeByOverlaps(query, subject)

target documentation built on Nov. 8, 2020, 5:28 p.m.