Skip to content

Commit

Permalink
fix debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Apr 12, 2024
1 parent 56dc5c2 commit 54712e1
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/rgfa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,13 @@ bool RGFACover::add_interval(vector<pair<step_handle_t, step_handle_t>>& thread_
#pragma omp critical(cerr)
cerr << "adding interval " << graph->get_path_name(graph->get_path_handle_of_step(new_interval.first))
<< (graph->get_is_reverse(graph->get_handle_of_step(new_interval.first)) ? "<" : ">")
<< ":" << graph->get_id(graph->get_handle_of_step(new_interval.first))
<< "-" << (graph->get_is_reverse(graph->get_handle_of_step(new_interval.second)) ? "<" : ">")
<< graph->get_id(graph->get_handle_of_step(new_interval.second)) << endl;
<< ":" << graph->get_id(graph->get_handle_of_step(new_interval.first));
if (new_interval.second == graph->path_end(graph->get_path_handle_of_step(new_interval.first))) {
cerr << "PATH_END" << endl;
} else {
cerr << "-" << (graph->get_is_reverse(graph->get_handle_of_step(new_interval.second)) ? "<" : ">")
<< graph->get_id(graph->get_handle_of_step(new_interval.second)) << endl;
}
#endif
bool merged = false;
int64_t merged_interval_idx = -1;
Expand All @@ -655,9 +659,13 @@ bool RGFACover::add_interval(vector<pair<step_handle_t, step_handle_t>>& thread_
#pragma omp critical(cerr)
cerr << "prev interval found" << graph->get_path_name(graph->get_path_handle_of_step(prev_interval.first))
<< ":" << (graph->get_is_reverse(graph->get_handle_of_step(prev_interval.first)) ? "<" : ">")
<< graph->get_id(graph->get_handle_of_step(prev_interval.first))
<< "-" << (graph->get_is_reverse(graph->get_handle_of_step(prev_interval.second)) ? "<" : ">")
<< graph->get_id(graph->get_handle_of_step(prev_interval.second)) << endl;
<< graph->get_id(graph->get_handle_of_step(prev_interval.first));
if (prev_interval.second == graph->path_end(graph->get_path_handle_of_step(prev_interval.first))) {
cerr << "PATH_END" << endl;
} else {
cerr << "-" << (graph->get_is_reverse(graph->get_handle_of_step(prev_interval.second)) ? "<" : ">")
<< graph->get_id(graph->get_handle_of_step(prev_interval.second)) << endl;
}
#endif
prev_interval.second = new_interval.second;
merged = true;
Expand Down

1 comment on commit 54712e1

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch rgfa2. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 17298 seconds

Please sign in to comment.