aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-16 22:47:52 +0300
committerBonfaceKilz2025-07-16 22:50:04 +0300
commitdcf7fc73bc77269492ec844641f5654b16789431 (patch)
tree56707c129314ece5884eb6ee5c02312216e21c49
parent4cce892e2249d52e3d3586703ece7bf4fb99127e (diff)
downloadgenenetwork3-dcf7fc73bc77269492ec844641f5654b16789431.tar.gz
Add kludge comment for "HSNIH-Palmer_true.geno" which has floats.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--scripts/lmdb_matrix.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lmdb_matrix.py b/scripts/lmdb_matrix.py
index c9bb097..02981f0 100644
--- a/scripts/lmdb_matrix.py
+++ b/scripts/lmdb_matrix.py
@@ -317,7 +317,12 @@ def read_genotype_file(genotype_file: str) -> GenotypeMatrix:
case _ if unknown == el:
matrix[i, j] = 3
case _:
- raise ValueError
+ # KLUDGE: It's not clear how to handle float
+ # types in a geno file
+ # E.g. HSNIH-Palmer_true.geno which has float
+ # values such as: 0.997. Ideally maybe:
+ # raise ValueError
+ continue
i += 1
__map = dict(zip(metadata_columns, meta))
for key in metadata_columns: