diff options
author | Arun Isaac | 2022-06-08 17:36:44 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-08 17:36:44 +0530 |
commit | 3d6ec56e35d6e14fc7f1d5d4d354c4905e69df4a (patch) | |
tree | 39980cf1af7d7bd6ff81ba8eb70375712664dd0f | |
parent | 3ca6699ca92b08c9e3deac4ae9c8d16b448ec2d8 (diff) | |
download | genenetwork3-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.
-rw-r--r-- | gn3/genodb.py | 2 |
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 |