findMostOverlapping: Find most overlapping element in subject for each element of...

Description Usage Arguments Value Note

Description

Runs the appropriate findOverlaps method and then for elements of query that overlap multiple elements of subject chooses the element of subject that has the greater overlap. Ties are broken at random.

Usage

1
findMostOverlapping(query, subject, ignore.strand = FALSE)

Arguments

query

Any object for which a 'findOverlaps' method is defined, e.g., a GRanges.

subject

Any object for which a 'findOverlaps' method is defined, e.g., a GRanges.

ignore.strand

When set to TRUE, the strand information is ignored in the overlap calculations.

Value

An integer vector containing for each query the index of the subject that it most overlaps (NA if there is no overlap).

Note

This was written for working with GRanges objects. While it may work with other objects for which a findOverlaps method exists, these are untested and correctness is not guaranteed. In particular, this will return an error if either the query or subject are GTuples or GTuplesList objects.


PeteHaitch/methsim documentation built on May 8, 2019, 1:32 a.m.