aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorArun Isaac2022-06-08 17:38:22 +0530
committerArun Isaac2022-06-08 17:38:22 +0530
commit0eedcfef92d8ae107166609c8ec83eb40d1eccbf (patch)
tree527546dcca5b03e21b52224f5e98516219a5d478 /gn3
parent3d6ec56e35d6e14fc7f1d5d4d354c4905e69df4a (diff)
downloadgenenetwork3-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')
-rw-r--r--gn3/genodb.py2
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