Find overlaps between two GRangesList objects
Usage
findOverlapsGRL(
GRL1,
GRL2,
annoName1 = "name",
annoName2 = "name",
check_names = TRUE,
...
)Arguments
- GRL1
GRangesListquery- GRL2
GRangesListsubject- annoName1
charactervalue indicating either the colname ofvalues(GRL1)to use as the name, or if"name"then it usesnames(GRL1).- annoName2
charactervalue indicating either the colname ofvalues(GRL2)to use as the name, or if"name"then it usesnames(GRL2).- check_names
logicalindicating whether the values defined byannoName1should match the values defined byannoName2. Note that whencheck_names=FALSEthe overlaps returned will depend upon GRL1 and GRL2 being in identical order. Otherwise, the values inannoName1andannoName2are used, which means GRL1 and GRL2 do not have to be in identical order.- ...
additional arguments are passed to
GenomicRanges::findOverlaps(), useful for customizing the overlap criteria.
Value
Hits object, or the natural output from
GenomicRanges::findOverlaps() dependent upon the ... arguments,
subsetted for only entries with matching values defined
by annoName1 and annoName2.
Details
This function implements GenomicRanges::findOverlaps() for the special
case of two GRangesList objects, restricting results to those including
the same GRangesList index in the subject and query.
See also
Other GenomicRanges functions:
addGRLgaps(),
addGRgaps(),
annotateGRLfromGRL(),
annotateGRfromGR(),
assignGRLexonNames(),
closestExonToJunctions(),
flattenExonsBy(),
getGRLgaps(),
getGRgaps(),
jam_isDisjoint(),
sortGRL(),
spliceGR2junctionDF()