percentOverlaps: Find overlapping genomic regions

Description Usage Arguments Details Value Author(s) Examples

Description

Find overlapping genomic regions

Usage

1
percentOverlaps(query, subject, ...)

Arguments

query

a GRanges object

subject

a GRanges object

...

pass to findOverlaps

Details

For every interval in query, it calculates the percent that is covered by subject.

Be careful with strand in your GRanges object!!

Value

A numeric vector which has the same length as query.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
3
4
gr1 = GRanges(seqname = "chr1", ranges = IRanges(start = c(4, 10), end = c(6, 16)))
gr2 = GRanges(seqname = "chr1", ranges = IRanges(start = c(7, 13), end = c(8, 20)))
percentOverlaps(gr1, gr2)
percentOverlaps(gr2, gr1)

eilslabs/epic documentation built on May 16, 2019, 1:24 a.m.