Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Dec 5, 2019
1 parent 0cf7941 commit a65d25f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/chunker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,21 @@ void PathChunker::extract_subgraph(const Region& region, int64_t context, int64_

// merge back our reference path to use the old chopping code
// todo: work with subpaths somehow?
if (!subgraph.has_path(region.seq)) {
if (!vg_subgraph->has_path(region.seq)) {
map<size_t, path_handle_t> ref_subpaths;
subgraph.for_each_path_handle([&](path_handle_t path_handle) {
string path_name = subgraph.get_path_name(path_handle);
vg_subgraph->for_each_path_handle([&](path_handle_t path_handle) {
string path_name = vg_subgraph->get_path_name(path_handle);
auto res = Paths::parse_subpath_name(path_name);
if (get<0>(res) == true && get<1>(res) == region.seq) {
ref_subpaths[get<2>(res)] = path_handle;
}
});
path_handle_t new_ref_path = subgraph.create_path_handle(region.seq, graph->get_is_circular(path_handle));
path_handle_t new_ref_path = vg_subgraph->create_path_handle(region.seq, graph->get_is_circular(path_handle));
for (auto& ref_subpath : ref_subpaths) {
subgraph.for_each_step_in_path(ref_subpath.second, [&] (step_handle_t subpath_step) {
subgraph.append_step(new_ref_path, subgraph.get_handle_of_step(subpath_step));
vg_subgraph->for_each_step_in_path(ref_subpath.second, [&] (step_handle_t subpath_step) {
vg_subgraph->append_step(new_ref_path, vg_subgraph->get_handle_of_step(subpath_step));
});
subgraph.destroy_path(ref_subpath.second);
vg_subgraph->destroy_path(ref_subpath.second);
}
}

Expand Down

1 comment on commit a65d25f

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

19 tests passed, 0 tests failed and 0 tests skipped in 13080 seconds

Tests produced 361 warnings. 361 were for lower-than-expected alignment scores

Please sign in to comment.