percent_overlap: Calculate the percentage between 2 GRanges objects.

Description Usage Arguments Value Examples

Description

Calculate the percentage between 2 GRanges objects.

Usage

1
percent_overlap(qry, sbj)

Arguments

qry

Query. The percentage will be calculated relatively to this object. Must of class GRanges.

sbj

Subject. Must be of class GRanges or GIntervalTree.

Value

The percentage of the query that overlaps the subject.

Examples

1
2
3
4
5
gr1 <- GRanges("chr1", IRanges(1,100))
gr2 <- GRanges("chr1", IRanges(40,140))
percent_overlap(gr1, gr2)
gri2 <- GIntervalTree(gr2)
percent_overlap(gr1, gr2)

CharlesJB/chipcompare documentation built on May 6, 2019, 9:58 a.m.