From dcf7fc73bc77269492ec844641f5654b16789431 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 16 Jul 2025 22:47:52 +0300 Subject: Add kludge comment for "HSNIH-Palmer_true.geno" which has floats. Signed-off-by: Munyoki Kilyungi --- scripts/lmdb_matrix.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/lmdb_matrix.py') 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: -- cgit 1.4.1