Skip to content

Commit

Permalink
Merge branch 'chop' of github.com:ComparativeGenomicsToolkit/hal2vg i…
Browse files Browse the repository at this point in the history
…nto chop
  • Loading branch information
glennhickey committed Mar 8, 2021
2 parents 76c0396 + f122898 commit e074b09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clip-vg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,12 @@ void forwardize_paths(MutablePathMutableHandleGraph* graph, const string& ref_pr
handle_t handle = graph->get_handle_of_step(step_handle);
if (graph->get_is_reverse(handle)) {
handle_t flipped_handle = graph->create_handle(graph->get_sequence(handle));
graph->follow_edges(handle, true, [&](handle_t prev_handle) {
graph->create_edge(prev_handle, flipped_handle);
});
graph->follow_edges(handle, false, [&](handle_t next_handle) {
graph->create_edge(flipped_handle, next_handle);
});
vector<step_handle_t> steps = graph->steps_of_handle(handle);
size_t ref_count = 0;
for (step_handle_t step : steps) {
Expand Down

0 comments on commit e074b09

Please sign in to comment.