Skip to content

Commit

Permalink
Fixed two bugs for very high scoring alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
torognes committed Jan 17, 2014
1 parent d289979 commit 934a2d9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2014-01-17 Torbjorn Rognes <[email protected]>
* Version 2.0.8
* Removed a bug in computation of the score of alignments
with a score higher than 32767
* Removed a bug in computation of the alignment of sequences
that scored higher than 65535
* No Mac executable this time, but coming soon (need to adapt
inline assembler syntax to the LLVM clang compiler)

2013-05-02 Torbjorn Rognes <[email protected]>
* Version 2.0.7
* Removed a few memory leaks discovered with Valgrind
Expand Down
Binary file modified Linux/mpiswipe
Binary file not shown.
Binary file modified Linux/swipe
Binary file not shown.
Binary file removed Mac/swipe
Binary file not shown.
2 changes: 1 addition & 1 deletion search16.cc
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ void search16(WORD * * q_start,

if (cand_id >= 0)
{
long score = ((WORD*)&S)[c] - 0x8000;
long score = ((WORD*)&S)[c] ^ 0x8000;
scores[cand_id] = score;
bestpos[cand_id] = d_best[c] - d_begin[c];
done++;
Expand Down
2 changes: 1 addition & 1 deletion search16s.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ void search16s(WORD * * q_start,

if (cand_id >= 0)
{
long score = ((WORD*)&S)[c] - 0x8000;
long score = ((WORD*)&S)[c] ^ 0x8000;
scores[cand_id] = score;
bestpos[cand_id] = d_best[c] - d_begin[c];
bestq[cand_id] = q_best[c];
Expand Down
3 changes: 2 additions & 1 deletion swipe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ void align_chunk(struct search_data * sdp, long hitfirst, long hitlast)

long hitno = sdp->start_hits[i];

hits_enter_align_hint(hitno, bestq, pos);
if (sdp->scores[i] < SCORELIMIT_16)
hits_enter_align_hint(hitno, bestq, pos);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion swipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#define LINE_MAX 2048
#endif

#define SWIPE_VERSION "2.0.7"
#define SWIPE_VERSION "2.0.8"

// Should be 32bits integer
typedef unsigned int UINT32;
Expand Down

1 comment on commit 934a2d9

@torognes
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SWIPE 2.0.8. I believe this commit should fix issues #3 and #10.

Please sign in to comment.