diff options
author | Arun Isaac | 2022-10-25 16:18:10 +0530 |
---|---|---|
committer | Arun Isaac | 2022-10-25 16:22:48 +0530 |
commit | 03852be20b7e554a7b228e08ab369bfba51fbde2 (patch) | |
tree | 8af44bb39b1919dbdb6ca643875c3d22b3a5a531 | |
parent | 544eae96a21848fbf400fa65b3eca40c0fc8fb87 (diff) | |
download | genenetwork3-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.
-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 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.''' |