annotate: Annotate one set of intervals with the names of those which intersect with the other
Description
Create a list of vectors of indices/names of intervals/points in annotation (if annotation is a two-column matrix/vector respectively) which intersect with each interval/point in x (if x is a two-column matrix/vector respectively).
Usage
annotate(x, annotation)
Value
List of vectors of indices of overlapping intervals/points.
Arguments
x
Integer matrix of two columns, the first column giving the (inclusive) start points of intervals and the second column giving the corresponding (exclusive) end points, or, an integer vector specifying the location of points.
annotation
Matrix specifying intervals or vector specifying points with which to annotate x.