Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Yan Gao committed Oct 5, 2020
1 parent 39b03e5 commit eb8a601
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions evaluation/Racon_abPOA/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ git clone https://github.com/yangao07/abPOA.git
# replace SPOA with abPOA:
cp abPOA -r vendor/
cp abPOA/evaluation/Racon_abPOA_CMakeLists.txt CMakeLists.txt
cp abPOA/evaluation/polisher.cpp src/polisher.cpp
cp abPOA/evaluation/polisher.hpp src/polisher.hpp
cp abPOA/evaluation/window.cpp src/window.cpp
cp abPOA/evaluation/window.hpp src/window.hpp
cp abPOA/evaluation/Racon_abPOA/Racon_abPOA_CMakeLists.txt CMakeLists.txt
cp abPOA/evaluation/Racon_abPOA/polisher.cpp src/polisher.cpp
cp abPOA/evaluation/Racon_abPOA/polisher.hpp src/polisher.hpp
cp abPOA/evaluation/Racon_abPOA/window.cpp src/window.cpp
cp abPOA/evaluation/Racon_abPOA/window.hpp src/window.hpp
# build Racon-SPOA
mkdir build
Expand Down
4 changes: 2 additions & 2 deletions evaluation/Racon_abPOA/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ bool Window::generate_consensus(abpoa_para_t* abpt,
// fprintf(stderr, "%d: %d %d\n", i, positions_[i].first, positions_[i].second);
if (positions_[i].first < offset && positions_[i].second > sequences_.front().second - offset) {
abpoa_align_sequence_to_graph(ab, abpt, bseqs[i], seq_lens[i], &res);
abpoa_add_graph_alignment(ab, abpt, bseqs[i], seq_lens[i], res.n_cigar, res.graph_cigar, i, n_seqs);
abpoa_add_graph_alignment(ab, abpt, bseqs[i], seq_lens[i], res, i, n_seqs);
} else {
int32_t inc_beg = positions_[i].first + 2, inc_end = positions_[i].second + 2;
abpoa_align_sequence_to_subgraph(ab, abpt, inc_beg, inc_end, bseqs[i], seq_lens[i], &res);
int32_t exc_beg, exc_end;
if (i != 0) abpoa_subgraph_nodes(ab, inc_beg, inc_end, &exc_beg, &exc_end);
else exc_beg = 0, exc_end = 0;
abpoa_add_subgraph_alignment(ab, abpt, exc_beg, exc_end, bseqs[i], seq_lens[i], res.n_cigar, res.graph_cigar, i, n_seqs);
abpoa_add_subgraph_alignment(ab, abpt, exc_beg, exc_end, bseqs[i], seq_lens[i], res, i, n_seqs);
}
if (res.n_cigar) free(res.graph_cigar);
}
Expand Down

0 comments on commit eb8a601

Please sign in to comment.