about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-04-16 14:13:49 -0500
committerFrederick Muriuki Muriithi2026-04-16 14:13:49 -0500
commitd6d093f89bb4ed041e63376f42628a1e3f143b5c (patch)
tree031f3ff220e69a592e853d415ad9db408a69202f /scripts
parent98d4e05dd776f90333f6430e7e42e28689e6b3bf (diff)
downloadgn-uploader-d6d093f89bb4ed041e63376f42628a1e3f143b5c.tar.gz
Improve error messages.
To help users better understand what the problem with their data is,
the errors need to be clearer to them. This commit fixes some error
messages.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rqtl2/phenotypes_qc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py
index 72d6c83..084c876 100644
--- a/scripts/rqtl2/phenotypes_qc.py
+++ b/scripts/rqtl2/phenotypes_qc.py
@@ -198,7 +198,7 @@ def qc_phenocovar_file(
                     "-",
                     "-",
                     (f"File {filepath.name} is missing the {heading} heading "
-                     "in the header line."))),)
+                     "in the header row/line."))),)
 
         def collect_errors(errors_and_linecount, line):
             _errs, _lc = errors_and_linecount
@@ -312,8 +312,9 @@ def qc_pheno_file(# pylint: disable=[too-many-locals, too-many-arguments, too-ma
                 "header row",
                 "-",
                 ", ".join(_absent),
-                ("The following phenotype names do not exist in any of the "
-                 f"provided phenocovar files: ({', '.join(_absent)})"))),)
+                ("The following trait names/identifiers do not exist in any of "
+                 "the provided descriptions/covariates files: "
+                 f"({', '.join(_absent)})"))),)
 
         def collect_errors(errors_and_linecount, line):
             _errs, _lc = errors_and_linecount