From 3d6ec56e35d6e14fc7f1d5d4d354c4905e69df4a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 8 Jun 2022 17:36:44 +0530 Subject: 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. --- gn3/genodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3