Skip to content
Prev 6830 / 21307 Next

[Bioc-devel] IRanges findOverlaps Result Different for Recent Update

Hi Michael,
On 01/15/2015 11:59 AM, Michael Lawrence wrote:
I understand but the fate of that code is to get out of sync
sooner or later. And sooner rather than later if it relies on
undocumented behavior.
It seems to be sufficient for more than 99.5% of the packages in
BioC svn :-)

Note that keeping Hits objects partially sorted instead of fully
sorted not only speeds up findOverlaps() but also basic operations
on Hits objects like union(), t(), etc...

Since we are on it, I should also mention that new in BioC 3.1 is a
Hits() constructor function which takes care of partially sorting the
hits, selectHits() for selecting hits in the same way the 'select'
arg of findOverlaps() does, and all the comparison operations (==, <=,
order, sort, rank, etc..., see ?`Hits-comparison` in S4Vectors).

Cheers,
H.