Skip to content

Commit 0bd9f12

Browse files
authored
Merge pull request #155 from SynBioDex/153-use-minhash-for-similar-and-hash-for-exact-sequence-clustering
set skip_cluster to true by default
2 parents 42c20f4 + 23f5142 commit 0bd9f12

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

flask/cluster.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,13 @@ def update_clusters():
117117
logger_.log('------------ Updating clusters ------------', True)
118118

119119
# Re-read config (force a fresh load, not the value cached at import) so a
120-
# flag set at runtime via /config is honored. When skip_clustering is set,
121-
# skip the (very slow) uclust run and keep the clusters from the previous
122-
# run -- update_index will leave the existing clusters_dump untouched.
120+
# flag set at runtime via /config is honored. skip_clustering DEFAULTS TO
121+
# TRUE: the (very slow) uclust run is skipped and the previous clusters are
122+
# reused unless config explicitly sets skip_clustering to false. This lets
123+
# deployments (e.g. Azure) that can't edit config.json avoid the multi-hour
124+
# clustering by default; a frontend can later set it false to force a rerun.
123125
config_manager._config = None
124-
if config_manager.load_config().get('skip_clustering'):
126+
if config_manager.load_config().get('skip_clustering', True):
125127
logger_.log('******** skip_clustering=true: skipping uclust, reusing previous clusters ********', True)
126128
logger_.log('------------ Clustering skipped (previous clusters kept) ------------\n', True)
127129
return None

flask/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"uclust_identity": "0.8", "elasticsearch_index_name": "part", "pagerank_tolerance": "0.0001", "elasticsearch_endpoint": "http://localhost:9200/", "sparql_endpoint": "http://localhost:8890/sparql?", "last_update_start": "2026-06-30T15:42:11.762203", "last_update_end": "none", "distributed_search": false, "which_search": "vsearch", "autoUpdateIndex": false, "updateTimeInDays": "1", "skip_clustering": true}
1+
{"uclust_identity": "0.8", "elasticsearch_index_name": "part", "pagerank_tolerance": "0.0001", "elasticsearch_endpoint": "http://localhost:9200/", "sparql_endpoint": "http://localhost:8890/sparql?", "last_update_start": "2026-06-30T18:45:50.382470", "last_update_end": "2026-06-30T16:47:36.892366", "distributed_search": false, "which_search": "vsearch", "autoUpdateIndex": false, "updateTimeInDays": "1"}

0 commit comments

Comments
 (0)