Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set snarl distance to 0 in path normalizer now that distance index is fixed. #4400

Merged
merged 3 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/traversal_clusters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ void merge_equivalent_traversals_in_graph(MutablePathHandleGraph* graph, const u
SnarlDistanceIndex distance_index;
{
IntegratedSnarlFinder snarl_finder(*graph);
// todo: why can't I pass in 0 below -- I don't want any dinstances!
fill_in_distance_index(&distance_index, graph, &snarl_finder, 1);
fill_in_distance_index(&distance_index, graph, &snarl_finder, 0);
}

// only consider embedded paths that span snarl
Expand Down
8 changes: 4 additions & 4 deletions test/t/11_vg_paths.t
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ diff original.fa norm_x4.fa
is $? 0 "path normalizer doesnt alter path sequences"

# note: x3 is x4 in reverse, so we key on that
grep x3 norm_x2.gfa | awk '{print $3}' > x4.path
grep x3 norm_x2.gfa | awk '{print $3}' >> x4.path
grep x3 norm_x2.gfa | awk '{print $3}'> x4.norm.path
grep x5 norm_x2.gfa | awk '{print $3}' >> x4.norm.path
grep x3 norm_x4.gfa | awk '{print $3}' > x4.path
grep x3 norm_x4.gfa | awk '{print $3}' >> x4.path
grep x3 norm_x4.gfa | awk '{print $3}'> x4.norm.path
grep x5 norm_x4.gfa | awk '{print $3}' >> x4.norm.path
diff x4.path x4.norm.path
is $? 0 "path normalizere correctly snapped all equivalent paths to x4"

Expand Down
Loading