diff options
author | Arun Isaac | 2022-06-08 17:38:22 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-08 17:38:22 +0530 |
commit | 0eedcfef92d8ae107166609c8ec83eb40d1eccbf (patch) | |
tree | 527546dcca5b03e21b52224f5e98516219a5d478 /gn3/genodb.py | |
parent | 3d6ec56e35d6e14fc7f1d5d4d354c4905e69df4a (diff) | |
download | genenetwork3-0eedcfef92d8ae107166609c8ec83eb40d1eccbf.tar.gz |
gn3: genodb: Open genotype database in read-only mode.
* gn3/genodb.py (GenotypeDatabase.__init__): Open genotype database in
read-only mode.
Diffstat (limited to 'gn3/genodb.py')
-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 8130c7f..62043d0 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, create=False) + self.env = lmdb.open(path, readonly=True, create=False) self.txn = self.env.begin() # 32 bytes in a SHA256 hash self.hash_length = 32 |