Skip to content

Commit

Permalink
fix a minor bug in mpmap
Browse files Browse the repository at this point in the history
  • Loading branch information
jeizenga committed May 10, 2020
1 parent b5cca2d commit 1ec80f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multipath_alignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,7 @@ namespace vg {
// do we need to merge the abutting edits?
int64_t edit_idx = 0;
if (final_mapping->edit_size() && first_mapping.edit_size()) {
Edit* final_edit = final_mapping->mutable_edit(0);
Edit* final_edit = final_mapping->mutable_edit(final_mapping->edit_size() - 1);
const Edit& first_edit = first_mapping.edit(0);
if ((first_edit.from_length() > 0) == (final_edit->from_length() > 0) &&
(first_edit.to_length() > 0) == (final_edit->to_length() > 0) &&
Expand Down

1 comment on commit 1ec80f1

@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 minor-bugfix-mpmap. View the full report here.

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

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

Please sign in to comment.