Skip to content

Commit

Permalink
Merge pull request #37 from ComparativeGenomicsToolkit/chop
Browse files Browse the repository at this point in the history
fix bug in removeDupes
  • Loading branch information
glennhickey authored Feb 10, 2021
2 parents cff3d34 + 06073dd commit 91a7569
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions halRemoveDupes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ int main(int argc, char** argv) {
TopSegment* topSeg = topIt->tseg();
if (topSeg->hasNextParalogy()) {
topSeg->setNextParalogyIndex(NULL_INDEX);
total_length += topSeg->getLength();
++total_edges;
if (!topSeg->isCanonicalParalog()) {
topSeg->setParentIndex(NULL_INDEX);
total_length += topSeg->getLength();
++total_edges;
}
}
}

Expand Down

0 comments on commit 91a7569

Please sign in to comment.