Skip to content

Commit

Permalink
iFix the bug of N penalty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wanping Lee committed May 2, 2016
1 parent 6cd58ef commit 474a36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ssw_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ void BuildSwScoreMatrix(const uint8_t& match_score,
matrix[id] = ((i == j) ? match_score : static_cast<int8_t>(-mismatch_penalty));
++id;
}
matrix[id] = -mismatch_penalty; // For N
matrix[id] = static_cast<int8_t>(-mismatch_penalty); // For N
++id;
}

for (int i = 0; i < 5; ++i)
matrix[id++] = -mismatch_penalty; // For N
matrix[id++] = static_cast<int8_t>(-mismatch_penalty); // For N

}

Expand Down

0 comments on commit 474a36d

Please sign in to comment.