Skip to content

Commit

Permalink
fix bug in halAlignability and halPhyloPMain where more than the tota…
Browse files Browse the repository at this point in the history
…l length could be computed due to a bug in chopping into sequence coordinates
  • Loading branch information
glennhickey committed Jul 26, 2013
1 parent b825fbf commit 0b26b99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alignability/halAlignability.cpp
Expand Up @@ -388,7 +388,7 @@ void printGenome(ostream& outStream,
{
hal_size_t readStart = seqStart >= start ? 0 : start - seqStart;
hal_size_t readLen = min(seqLen - readStart, length);

readLen = min(readLen, length - runningLength);
printSequence(outStream, sequence, targetSet, readStart, readLen, step);
runningLength += readLen;
}
Expand Down
2 changes: 1 addition & 1 deletion phyloP/impl/halPhyloPMain.cpp
Expand Up @@ -248,7 +248,7 @@ void printGenome(PhyloP *phyloP,
{
hal_size_t readStart = seqStart >= start ? 0 : start - seqStart;
hal_size_t readLen = min(seqLen - readStart, length);

readLen = min(readLen, length - runningLength);
phyloP->processSequence(sequence, readStart, readLen, step);
runningLength += readLen;
}
Expand Down

0 comments on commit 0b26b99

Please sign in to comment.