Skip to content

Commit

Permalink
Stupid bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jltsiren committed Oct 25, 2019
1 parent ac51a72 commit 5c0f196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path_cover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ struct LocalHaplotypes
{
bool success = false;
BestCoverage<LocalHaplotypes> best;
auto start = (path.size() + 1 < k ? path.begin() : path.end() - (path.size() - 1));
auto start = (path.size() + 1 < k ? path.begin() : path.end() - (k - 1));
std::vector<handle_t> context(start, path.end());
gbwt::BidirectionalState state = graph.bd_find(context);
graph.follow_paths(state, false, [&](const gbwt::BidirectionalState& next) -> bool
Expand Down

0 comments on commit 5c0f196

Please sign in to comment.