[Bioperl-l] BUG! In RangeI! grrr....

Ewan Birney birney@ebi.ac.uk
Tue, 15 Jan 2002 11:39:49 +0000 (GMT)


On Tue, 15 Jan 2002, Elia Stupka wrote:

> Hello folks,
> 
> we have discovered a bug in bioperl in RangeI, we are trying to recover
> from the shock that we were relying on these methods in some of the
> heuristics of our gene building... just before submission.... grrr... 
> 
> Anyway, the bug is in the _weak and _strong methods of RangeI, the
> following return statements don't evaluate correctly if you use "and",
> and "or" instead of "&&" and "||".................
> 
> in _strong method:
>  return $s1 != 0 && $s2 != 0 && $s1 == $s2;
> 
> in _weak method:
> 
>  return $s1 == 0 || $s2 == 0 || $s1 == $s2;
> 
> $s1 and $s2 are the strands there, and these methods are called when
> overlaps('strong') is called and overlaps('weak') is called....
> 
> I am commiting it to the main trunk, want me to commit it on 072?

Yes. That would be nice. 


> 
> Elia and FuguI in mourning... :(
> 
> 
> -- 
> ********************************
> * http://www.fugu-sg.org/~elia *
> * tel:    +65 874 1467         *
> * mobile: +65 90307613         *
> * fax:    +65 777 0402         *
> ********************************
> 
> 
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
> 

-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>. 
-----------------------------------------------------------------