Skip to content

Commit

Permalink
try to recover from wrong numWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolmogorov committed Sep 25, 2018
1 parent 1a89ef1 commit 5fe67bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/assemble/extender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,11 @@ std::vector<FastaRecord::Id>
if (coverage.empty())
{
int numWindows = _readsContainer.seqLen(ovlp.extId) / WINDOW;
if (!numWindows) throw std::runtime_error("wrong read length");
if (numWindows < 1)
{
Logger::get().warning() << "Wrong read length: " << numWindows;
numWindows = 1;
}
coverage.assign(numWindows, 0);
}

Expand Down

0 comments on commit 5fe67bb

Please sign in to comment.