From 03852be20b7e554a7b228e08ab369bfba51fbde2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 25 Oct 2022 16:18:10 +0530 Subject: 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. --- gn3/genodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3') 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.''' -- cgit v1.2.3