aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorArun Isaac2022-10-25 16:18:10 +0530
committerArun Isaac2022-10-25 16:22:48 +0530
commit03852be20b7e554a7b228e08ab369bfba51fbde2 (patch)
tree8af44bb39b1919dbdb6ca643875c3d22b3a5a531 /gn3
parent544eae96a21848fbf400fa65b3eca40c0fc8fb87 (diff)
downloadgenenetwork3-03852be20b7e554a7b228e08ab369bfba51fbde2.tar.gz
Reshape column major genotype database storage correctly.
* gn3/genodb.py (matrix): Reshape column major genotype database storage as ncols x nrows instead of as nrows x ncols.
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 3f7c71d..28d6842 100644
--- a/gn3/genodb.py
+++ b/gn3/genodb.py
@@ -55,7 +55,7 @@ def matrix(db):
(nrows, ncols)),
np.reshape(np.frombuffer(read_optimized_blob[nrows*ncols :],
dtype=np.uint8),
- (nrows, ncols)))
+ (ncols, nrows)))
def nparray(matrix):
'''Get matrix as a 2D numpy array.'''