Hi there,
I am trying to locate a function that finds pairs of adjacent ranges - ranges where the end of range A is exactly start-1 of range B. Example with 3 ranges:
AAAAABBBBBCCCCC
pair 1 AAAAA BBBBB
pair 2 BBBBB CCCCC
I thought that would be possible using findOverlaps()
or findOverlapPairs()
in the IRanges package, but the type argument only lets me select
type=c("any", "start", "end", "within", "equal")
so I can either compare the start pos., the end or both, but I cannot find a way to compare start vs. end.
Is there really no way to do this with the current functions?
Greetings,
Tobi