Skip to content

Commit

Permalink
Adds comment for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
samhorsfield96 authored Jul 17, 2024
1 parent 07c462e commit 0f0acd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/indexing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ void calculate_genome_paths(const std::vector<Kmer>& head_kmer_arr,
}
}

// in case where whole contig removed, do not add to FM index
// otherwise causes out of range error with head_kmer_arr as k-mer not present
if (prev_head != 0) {
// map to last entry and assign end-contig
auto um_pair = get_um_data(ccdbg, head_kmer_arr, prev_head);
Expand Down

0 comments on commit 0f0acd3

Please sign in to comment.