From 3bf557e95405a721e9bb751a38203e14f6dfc223 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Thu, 29 Aug 2024 13:03:46 -0700 Subject: [PATCH] Fetch out edit --- src/alignment.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/alignment.cpp b/src/alignment.cpp index 3d388c2273..b7eeba4c23 100644 --- a/src/alignment.cpp +++ b/src/alignment.cpp @@ -2761,6 +2761,7 @@ Alignment target_alignment(const PathPositionHandleGraph* graph, const path_hand size_t node_pos = pos1 - graph->get_position_of_step(step); while (edit_idx < cigar_mapping.edit_size()) { if (step == graph->path_end(path)) { + const auto& edit = cigar_mapping.edit(edit_idx); if (edit.from_length() == 0 && aln.path().mapping_size() != 0) { // This is a softclip off the end of the contig. // We can add it to the last mapping as an edit