aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorArun Isaac2022-06-08 17:36:44 +0530
committerArun Isaac2022-06-08 17:36:44 +0530
commit3d6ec56e35d6e14fc7f1d5d4d354c4905e69df4a (patch)
tree39980cf1af7d7bd6ff81ba8eb70375712664dd0f /gn3
parent3ca6699ca92b08c9e3deac4ae9c8d16b448ec2d8 (diff)
downloadgenenetwork3-3d6ec56e35d6e14fc7f1d5d4d354c4905e69df4a.tar.gz
gn3: genodb: Do not create genotype database if it does not exist.
* gn3/genodb.py (GenotypeDatabase.__init__): Do not create genotype database if it does not exist.
Diffstat (limited to 'gn3')
-rw-r--r--gn3/genodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/genodb.py b/gn3/genodb.py
index 89a6509..8130c7f 100644
--- a/gn3/genodb.py
+++ b/gn3/genodb.py
@@ -3,7 +3,7 @@ import numpy as np
class GenotypeDatabase:
def __init__(self, path):
- self.env = lmdb.open(path)
+ self.env = lmdb.open(path, create=False)
self.txn = self.env.begin()
# 32 bytes in a SHA256 hash
self.hash_length = 32