Skip to content

Commit

Permalink
Check orientation of seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
xchang1 committed Sep 9, 2024
1 parent 1b5387f commit 1bef104
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/zip_code_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2282,12 +2282,10 @@ void ZipCodeForest::get_next_intervals(forest_growing_state_t& forest_state, con
insert_itr->interval_end = i;


if (!previous_is_node) {
insert_itr->is_reversed = ZipCodeTree::seed_is_reversed_at_depth(seeds->at(zipcode_sort_order[i-1]),
child_depth, *distance_index)
? !interval.is_reversed
: interval.is_reversed;
}
insert_itr->is_reversed = ZipCodeTree::seed_is_reversed_at_depth(seeds->at(zipcode_sort_order[i-1]),
child_depth, *distance_index)
? !interval.is_reversed
: interval.is_reversed;

//Open a new run
next_intervals.emplace_after(insert_itr, i, i, interval.is_reversed,
Expand Down

1 comment on commit 1bef104

@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 lr-giraffe. View the full report here.

14 tests passed, 0 tests failed and 0 tests skipped in 15535 seconds

Please sign in to comment.