about summary refs log tree commit diff
path: root/scripts/lmdb_matrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lmdb_matrix.py')
-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: