mincover: Compute minimum size of cover of overlapping intervals.

Description Usage Arguments Value Author(s) Examples

Description

Compute minimum size of cover of overlapping intervals.

Usage

1
mincover(x.begin, x.end)

Arguments

x.begin

a vector of interval begin positions.

x.end

a vector of interval end positions.

Value

An integer, the total size covered by the union of all intervals.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com

Examples

1
2
3
mincover(c(1, 5, 10, 11, 22), c(8, 17, 13, 19, 25))
## first to fourth intervals all overlap
## third interval 10:13 entirely inside second interval 5:17

gtx documentation built on May 2, 2019, 5:08 a.m.