[Bioperl-l] BUG! In RangeI! grrr....
Elia Stupka
elia@fugu-sg.org
Tue, 15 Jan 2002 18:14:24 +0800 (SGT)
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?
Elia and FuguI in mourning... :(
--
********************************
* http://www.fugu-sg.org/~elia *
* tel: +65 874 1467 *
* mobile: +65 90307613 *
* fax: +65 777 0402 *
********************************