proportion_overlap: Calculate proportion overlapping of intersecting intervals

View source: R/functions.R

proportion_overlapR Documentation

Calculate proportion overlapping of intersecting intervals

Description

Proportion overlapping is calculated as the size of the intersection of intervals, divided by the size of the union.

Usage

proportion_overlap(...)

Arguments

...

Interval matrices (passed to join).

Value

data.frame containing integer columns corresponding to indices of intervals within the input matrices and a final numeric column called proportion_overlap containing the fraction of the size of the intersection within the union.

Examples

proportion_overlap(rbind(c(1, 2), c(49, 51), c(50, 200)), rbind(c(50, 100)))

IntervalSurgeon documentation built on April 15, 2023, 5:07 p.m.