Skip to content

Commit

Permalink
complexsearch with DBSCAN commit for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Woosub-Kim committed Feb 13, 2024
1 parent a7fefa2 commit dc272d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/strucclustutils/createcomplexreport.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const float DEF_BIT_SCORE = -1.0;
const int UNINITIALIZED = 0;
const float LEARNING_RATE = 0.1;
const float DEFAULT_EPS = 0.1;
const unsigned int MULTIPLE_CHAIN = 2;
const unsigned int MULTIPLE_CHAINED_COMPOLEX = 2;
typedef std::pair<std::string, std::string> compNameChainName_t;
typedef std::map<unsigned int, unsigned int> chainKeyToComplexId_t;
typedef std::map<unsigned int, std::vector<unsigned int>> complexIdToChainKeys_t;
Expand Down
6 changes: 3 additions & 3 deletions src/strucclustutils/scorecomplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ class DBSCANCluster {
}
if (checkChainRedundancy()) {
neighbors.clear();
if (searchResult.alnVec.size() < MULTIPLE_CHAIN)
if (searchResult.alnVec.size() < MULTIPLE_CHAINED_COMPOLEX)
finishDBSCAN();

return runDBSCAN();
Expand Down Expand Up @@ -649,7 +649,7 @@ class ComplexScorer {
currAlns.clear();
paredSearchResult.filterAlnVec(minAssignedChainsRatio);
paredSearchResult.standardize();
if (!paredSearchResult.alnVec.empty()) // && currDbChainKeys.size() > 1
if (!paredSearchResult.alnVec.empty() && currDbChainKeys.size() >= MULTIPLE_CHAINED_COMPOLEX)
searchResults.emplace_back(paredSearchResult);

paredSearchResult.alnVec.clear();
Expand Down Expand Up @@ -833,7 +833,7 @@ int scorecomplex(int argc, const char **argv, const Command &command) {
for (size_t qCompIdx = 0; qCompIdx < qComplexIndices.size(); qCompIdx++) {
unsigned int qComplexId = qComplexIndices[qCompIdx];
std::vector<unsigned int> &qChainKeys = qComplexIdToChainKeysMap.at(qComplexId);
if (qChainKeys.size() < MULTIPLE_CHAIN)
if (qChainKeys.size() < MULTIPLE_CHAINED_COMPOLEX)
continue;
complexScorer.getSearchResults(qComplexId, qChainKeys, dbChainKeyToComplexIdMap, dbComplexIdToChainKeysMap, searchResults);
// for each db complex
Expand Down

0 comments on commit dc272d5

Please sign in to comment.