diff options
author | Alexander_Kabui | 2023-01-23 13:35:57 +0300 |
---|---|---|
committer | Alexander_Kabui | 2023-01-23 13:35:57 +0300 |
commit | c5ae72c8b8dffb5c8391b655a1bde21426fb92a0 (patch) | |
tree | 02c86aaf8e00ead858d8c894a82ab41aae2e1f24 | |
parent | 8dcdfea901631fa65b6f4793a152bf66188a98de (diff) | |
download | genenetwork2-c5ae72c8b8dffb5c8391b655a1bde21426fb92a0.tar.gz |
init lmdb file generator
-rw-r--r-- | wqflask/wqflask/correlation/correlation_file_generator.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/wqflask/wqflask/correlation/correlation_file_generator.py b/wqflask/wqflask/correlation/correlation_file_generator.py index 79161f6d..401b3ba6 100644 --- a/wqflask/wqflask/correlation/correlation_file_generator.py +++ b/wqflask/wqflask/correlation/correlation_file_generator.py @@ -123,3 +123,26 @@ def generate_csv_file(conn,db_name,txt_dir,file_name): except Exception as e: raise e + + +def lmdb_file_generator(): + pass + + + +"""" +import lmdb +import os +import tempfile +with tempfile.TemporaryDirectory() as tmpdirname: + + tmp_file_path = os.path.join(tmpdirname,"img_lmdb") + breakpoint() + db = lmdb.open(tmp_file_path, map_size=int(1e12)) + + with db.begin(write=True) as in_txn: + + + db.close() + +""" |