Skip to content

Commit

Permalink
Fix issue #24; add a preliminary implementation of seqdiff
Browse files Browse the repository at this point in the history
  • Loading branch information
spond committed Jul 18, 2022
1 parent 3c80030 commit 5448fac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.8
v1.0.9
4 changes: 2 additions & 2 deletions src/seqdiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ int main(int argc, const char *argv[]) {
"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"
"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bProgress"
":"
<< setw(8) << percentDone << "% " << setw(12) << std::setprecision(3)
<< seq_id / difftime(after, before) << " evals/sec)";
<< setw(8) << percentDone << "% (" << setw(12) << std::setprecision(3)
<< seq_id / difftime(after, before) << " seqs/sec)";

after = before;
}
Expand Down
10 changes: 4 additions & 6 deletions src/tn93_shared.cc
Original file line number Diff line number Diff line change
Expand Up @@ -588,19 +588,17 @@ double computeTN93 (const char * __restrict__ s1, const char * __restrict__ s2,
if (__builtin_expect(c1 < 4 && c2 < 4, 1)) {
integer_counts [c1][c2] ++;
} else { // not both resolved
if (c1 == GAP || c2 == GAP) {
continue;
if (c1 != GAP && c2 != GAP) {
ambiguityHandler (c1,c2);
}
ambiguityHandler (c1,c2);
}

if (__builtin_expect(c3 < 4 && c4 < 4, 1)) {
integer_counts2 [c3][c4] ++;
} else { // not both resolved
if (c3 == GAP || c4 == GAP) {
continue;
if (c3 != GAP && c4 != GAP) {
ambiguityHandler (c3,c4);
}
ambiguityHandler (c3,c4);
}
}

Expand Down

0 comments on commit 5448fac

Please sign in to comment.