merge_granges: Merging each GRanges objects in a GRangesList wihtin a...

View source: R/utils.R

merge_glistR Documentation

Merging each GRanges objects in a GRangesList wihtin a windows.

Description

Each GRanges object in a GRangesList are merged if the GRanges are wihtin the specified distance. Strand information are ignored.

Usage

merge_glist(x, tol = 10000)

Arguments

x

A GRangesList.

invert

An integer specifying the maximum distance between adjacent windows.

Value

A GRangeslist containing the merged windows.

Author(s)

Cheuk-Ting Law

Examples

grl <- GRangesList(GRanges(c(1,1), IRanges(c(10, 15), c(18, 20))))
merge_glist(grl)

ctl43/TranSpotteR documentation built on Sept. 9, 2022, 5:49 p.m.