propOverlap-methods: Find the proportions of an overlapping range

propOverlapR Documentation

Find the proportions of an overlapping range

Description

Find the proportion of a query reange which overlaps the subject

Usage

propOverlap(x, y, ...)

## S4 method for signature 'GRanges,GRanges'
propOverlap(x, y, ignore.strand = FALSE, ...)

Arguments

x, y

A GenomicRanges object

...

Not used

ignore.strand

If set to TRUE, then the strand of x and y is set to "*" prior to any computation.

Details

This behaves similarly to overlapsAny except the proportion of the query range which overlaps one or more subject ranges is returned instead of a logical vector

Value

Numeric vector the same length as x

Examples

x <- GRanges("chr1:1-10")
y <- GRanges("chr1:1-5")
propOverlap(x, y)
propOverlap(y, x)


steveped/chipExtra documentation built on Aug. 1, 2024, 12:33 a.m.