Skip to content

Commit

Permalink
bitscore margine change
Browse files Browse the repository at this point in the history
  • Loading branch information
Woosub-Kim committed Feb 11, 2024
1 parent a6b1928 commit a7fefa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/strucclustutils/createcomplexreport.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const double FILTERED_OUT = 0.0;
const unsigned int UNCLUSTERED = 0;
const unsigned int CLUSTERED = 1;
const unsigned int MIN_PTS = 2;
const float BIT_SCORE_MARGIN = 0.9;
const float BIT_SCORE_MARGIN = 0.7;
const float DEF_BIT_SCORE = -1.0;
const int UNINITIALIZED = 0;
const float LEARNING_RATE = 0.1;
Expand Down
5 changes: 3 additions & 2 deletions src/strucclustutils/scorecomplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,11 @@ class DBSCANCluster {
unsigned int getAlnClusters() {
// rbh filter
filterAlnsByRBH();
fillDistMap();
// To skip DBSCAN clustering when alignments are few enough.
if (searchResult.alnVec.size() <= idealClusterSize)
return checkClusteringNecessity();
fillDistMap();

return runDBSCAN();
}

Expand Down Expand Up @@ -483,7 +484,7 @@ class DBSCANCluster {
neighbors.clear();
if (searchResult.alnVec.size() < MULTIPLE_CHAIN)
finishDBSCAN();
fillDistMap();

return runDBSCAN();
}
prevMaxClusterSize = neighbors.size();
Expand Down

0 comments on commit a7fefa2

Please sign in to comment.