ssvOverlapIntervalSets: Intersect a list of GRanges to create a single GRanges object...

Description Usage Arguments Value Examples

View source: R/overlapIntervalSets.R

Description

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

Usage

1
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.

...

arguments passed to IRanges::findOverlaps, i.e. maxgap, minoverlap, type, select, invert.

Value

GRanges with metadata columns describing overlap of input grs.

Examples

1
2
3
4
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))

seqsetvis documentation built on Nov. 8, 2020, 5:57 p.m.