diff options
author | Arun Isaac | 2022-06-08 17:44:18 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-08 17:44:18 +0530 |
commit | 832cc7c44a163ccb156c45e547d0cac90fe29593 (patch) | |
tree | aa9a9d564ea6ee1cab7f5a5b51524aade3d333ac /gn3/genodb.py | |
parent | 0eedcfef92d8ae107166609c8ec83eb40d1eccbf (diff) | |
download | genenetwork3-832cc7c44a163ccb156c45e547d0cac90fe29593.tar.gz |
gn3: genodb: Read only the most recent genotype matrix.
The genotype database format now supports versioning of matrices. So, we
update genodb.py to return only the most recent genotype matrix.
* gn3/genodb.py (GenotypeDatabase.matrix): Return only the most recent
genotype matrix.
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 62043d0..96bded6 100644 --- a/gn3/genodb.py +++ b/gn3/genodb.py @@ -17,7 +17,7 @@ class GenotypeDatabase: def get_metadata(self, hash, metadata): return self.txn.get(hash + b':' + metadata.encode()) def matrix(self): - hash = self.get(b'current') + hash = self.get(b'current')[0:self.hash_length] return Matrix(self, hash) class Matrix(): |