Skip to content

Commit

Permalink
scorecomplex many against many bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Woosub-Kim committed Jan 4, 2024
1 parent 3fe1f9e commit 9f8a2ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/strucclustutils/scorecomplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@ class DBSCANCluster {
unsigned int clusterAlns() {
initializeAlnLabels();
if (++recursiveNum > MAX_RECURSIVE_NUM) return UNCLUSTERED;
if (searchResult.alnVec.size() == idealClusterSize) {
for (size_t alnIdx=0; alnIdx<searchResult.alnVec.size(); alnIdx++) {
neighbors.emplace_back(alnIdx);
}
bestClusters.emplace_back(neighbors);
return finishDBSCAN();
}
for (size_t centerAlnIdx=0; centerAlnIdx < searchResult.alnVec.size(); centerAlnIdx++) {
ChainToChainAln &centerAln = searchResult.alnVec[centerAlnIdx];
if (centerAln.label != 0) continue;
Expand Down

0 comments on commit 9f8a2ef

Please sign in to comment.