Skip to content

Commit

Permalink
Update graph-builder.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gf777 committed May 9, 2024
1 parent 16c4484 commit 0af74a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/graph-builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,12 +802,15 @@ bool DBG::mergeSubMaps(parallelMap* map1, parallelMap* map2, uint8_t subMapIndex
auto got = submap2.find(pair.first); // insert or find this kmer in the hash table
if (got == submap2.end()) {
submap2.insert(pair);
auto got = map32.find(pair.first); // check if this is already a high-copy kmer
if (got != map32.end())
overflow = true;
}else{

DBGkmer& dbgkmerMap = got->second;
auto got2 = map32.find(pair.first); // check if this is already a high-copy kmer
auto got = map32.find(pair.first); // check if this is already a high-copy kmer

if (got2 == map32.end()) {
if (got == map32.end()) {

if (255 - dbgkmerMap.cov < pair.second.cov)
overflow = true;
Expand Down

0 comments on commit 0af74a9

Please sign in to comment.