ssvOverlapIntervalSets {seqsetvis} | R Documentation

## Intersect a list of GRanges to create a single GRanges object of merged ranges including metadata describing overlaps per input GRanges

### Description

Intersect a list of GRanges to create a single GRanges object of merged ranges including metadata describing overlaps per input GRanges

### Usage

    ssvOverlapIntervalSets(grs, ext = 0, use_first = FALSE)

### Arguments

`grs` | A list of GRanges
`ext` | An integer specifying how far to extend ranges before merging. in effect, ranges withing 2*ext of one another will be joined during the merge
`use_first` | A logical. If True, instead of merging all grs, only use first and add metadata logicals for others.

### Value

GRanges with metadata columns describing overlap of input grs

### Examples

    library(GenomicRanges)
    a = GRanges("chr1", IRanges(1:7*10, 1:7*10))
    b = GRanges("chr1", IRanges(5:10*10, 5:10*10))
    ssvOverlapIntervalSets(list(a, b))

[Package seqsetvis version 1.8.0 Index]