Skip to content

Commit

Permalink
Update submodule spoa
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaser committed Sep 18, 2019
1 parent 95e9a63 commit 7106b64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ bool Window::generate_consensus(std::shared_ptr<spoa::AlignmentEngine> alignment
spoa::Alignment alignment;
if (positions_[i].first < offset && positions_[i].second >
sequences_.front().second - offset) {
alignment = alignment_engine->align_sequence_with_graph(
sequences_[i].first, sequences_[i].second, graph);
alignment = alignment_engine->align(sequences_[i].first,
sequences_[i].second, graph);
} else {
std::vector<int32_t> mapping;
auto subgraph = graph->subgraph(positions_[i].first,
positions_[i].second, mapping);
alignment = alignment_engine->align_sequence_with_graph(
sequences_[i].first, sequences_[i].second, subgraph);
alignment = alignment_engine->align( sequences_[i].first,
sequences_[i].second, subgraph);
subgraph->update_alignment(alignment, mapping);
}

Expand Down

0 comments on commit 7106b64

Please # to comment.