about summary refs log tree commit diff
path: root/scripts/lmdb_matrix.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-17 09:42:13 +0300
committerMunyoki Kilyungi2025-07-17 09:42:13 +0300
commiteb8d16fd67fc954e29ae899eddc4ec23356dbff8 (patch)
treedef34c9ab4ae521ad5aa07404507d7f1b1a7276c /scripts/lmdb_matrix.py
parentaacf63b16aa5d77232d38e45b04c717203d1a5af (diff)
downloadgenenetwork3-eb8d16fd67fc954e29ae899eddc4ec23356dbff8.tar.gz
Skip blank lines.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'scripts/lmdb_matrix.py')
-rw-r--r--scripts/lmdb_matrix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lmdb_matrix.py b/scripts/lmdb_matrix.py
index a66f2d1..efd7c58 100644
--- a/scripts/lmdb_matrix.py
+++ b/scripts/lmdb_matrix.py
@@ -170,7 +170,7 @@ def get_genotype_dimensions(genotype_file: str) -> tuple[int, int]:
             line = stream.readline()
             counter += 1
             match line:
-                case "" | _ if line.startswith(("#", "@")):
+                case "" | _ if line.startswith(("#", "@", "\n")):
                     continue
                 case _:
                     rows = line.split()