merge_ranges {target} | R Documentation

## Merge peaks and regions GRanges

### Description

Merge two GRanges objects by overlaps

### Usage

    merge_ranges(peaks, regions)

### Arguments

`peaks` | A GRanges object
`regions` | A GRanges object

### Value

A DataFrame

### Examples

    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)

[Package target version 1.4.0 Index]