Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Early exit from the overlap function when the input read is shorter t…

…han min_overlap
  • Loading branch information...
commit 528b53ed46a86a5c06727ef099291472f2c9eeee 1 parent f3becf3
@jts authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/Algorithm/OverlapAlgorithm.cpp
View
3  src/Algorithm/OverlapAlgorithm.cpp
@@ -20,6 +20,9 @@ static const AlignFlags preSufAF(true, true, false);
OverlapResult OverlapAlgorithm::overlapRead(const SeqRecord& read, int minOverlap, OverlapBlockList* pOutList) const
{
OverlapResult r;
+ if(static_cast<int>(read.seq.length()) < minOverlap)
+ return r;
+
if(!m_exactModeOverlap)
r = overlapReadInexact(read, minOverlap, pOutList);
else
Please sign in to comment.
Something went wrong with that request. Please try again.