6f6777bc15f21a8bbb6b2f402eb328a1ecb21652
jbirgmei
  Thu Jul 3 01:58:56 2025 -0700
Refactored a bit

diff --git src/hg/utils/otto/pubtatorDbSnp/dbs_combiner.py src/hg/utils/otto/pubtatorDbSnp/dbs_combiner.py
deleted file mode 100755
index 7bee6d3a874..00000000000
--- src/hg/utils/otto/pubtatorDbSnp/dbs_combiner.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import logging
-import argparse
-import sys
-import pathlib
-
-from sqlitedict import SqliteDict
-
-
-def combine_cache_dbs_program() -> None:
-    parser = argparse.ArgumentParser()
-    parser.add_argument("--combined-cache-db", type=str, required=True)
-    parser.add_argument("--new-cache-dbs-dir", type=str, required=True)
-    args = parser.parse_args()
-
-    logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
-
-    with SqliteDict(args.combined_cache_db) as combined_cache_db:
-        new_cache_dbs = list(pathlib.Path(args.new_cache_dbs_dir).glob("*.sqlite*"))
-        for new_cache_db in new_cache_dbs:
-            logging.info("Processing %s", new_cache_db)
-            with SqliteDict(new_cache_db) as new_db:
-                for key, value in new_db.items():
-                    combined_cache_db[key] = value
-            combined_cache_db.commit()
-
-
-if __name__ == "__main__":
-    combine_cache_dbs_program()