You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an integer overflow bug in AbstractMatrixAligner, the type used for max and min scores is short. Whenever the score is higher than that, then it overflows and goes to the negative side.
Alignment was still not working properly for very large sequences:
tested with sequence of PDB 2y9r (102 residues) against UniProt Q8WZ42
(34350 residues), a null pointer exception was happening
The key in this patch is the modification in AbstractMatrixAligner:
score has to be initialized to Integer.MIN_VALUE and not to
Short.MIN_VALUE
There seems to be an integer overflow bug in
AbstractMatrixAligner
, the type used for max and min scores isshort
. Whenever the score is higher than that, then it overflows and goes to the negative side.Code to reproduce:
The output for that is:
Where it is clear that the max score is overflowing and the similarity value is then wrong.
The text was updated successfully, but these errors were encountered: