about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-28 13:22:38 -0500
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-28 13:53:15 -0500
commit1303da15a9476810863a66056eb621baa7628961 (patch)
tree3d361d8baa946aa581c889fda494baab66127a80 /scripts
parentf4998539df3141831c0146df4e32df805ddc1b6c (diff)
downloadgn-uploader-1303da15a9476810863a66056eb621baa7628961.tar.gz
Allow negative values for phenotype traits. HEAD main
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rqtl2/phenotypes_qc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py
index 084c876..e65bbcc 100644
--- a/scripts/rqtl2/phenotypes_qc.py
+++ b/scripts/rqtl2/phenotypes_qc.py
@@ -252,7 +252,8 @@ def decimal_points_error(# pylint: disable=[too-many-arguments,too-many-position
         decimal_places: int = 1
 ) -> Optional[InvalidValue]:
     """Returns an error if the value does not meet the checks."""
-    if not bool(decimal_places_pattern(decimal_places).match(cellvalue)):
+    if not bool(decimal_places_pattern(
+            decimal_places, allow_negative_values=True).match(cellvalue)):
         return InvalidValue(filename, rowtitle, coltitle, cellvalue, message)
     return None