Skip to content

[Bioc-devel] Fast check of GenomicRanges equality to speed up cbind, SummarizedExperiment

2 messages · Hervé Pagès, Peter Hickey

#
Hi Pete,

Thanks for suggesting this fast method. I've formalized this a little
bit by using a generic (identicalVals) + methods. I also tweaked it
in order to avoid false negatives that can occur when 'x' and 'y' have
different names or different seqlevels. So no more fallback to
'all(x == y)'.

Committed in SummarizedExperiment 1.3.82.

BTW please note that 'x == y' and 'identicalVals(x, y)' both ignore
circularity of the underlying sequences e.g. ranges [1, 10] and
[101, 110] represent the same position on a circular sequence of
length 100 so should be considered equal. However for 'x == y' and
'identicalVals(x, y)', they are not. Something we should address at
some point...

Cheers,
H.
On 08/30/2016 05:57 AM, Peter Hickey wrote:

  
    
#
Wonderful. Thanks, Herv?!
On 30 August 2016 at 20:45, Herv? Pag?s <hpages at fredhutch.org> wrote: