aboutsummaryrefslogtreecommitdiff
path: root/scripts/rqtl2/phenotypes_qc.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-06-17 14:18:24 -0500
committerFrederick Muriuki Muriithi2025-06-17 14:18:24 -0500
commitb0991ec5cea1411237b82e92467603bf9da803f5 (patch)
treee6052c3eeac84adf0da008c9b7ea11c051923fd1 /scripts/rqtl2/phenotypes_qc.py
parent2c21e5a1715f45e067298000327c389fd45f0909 (diff)
downloadgn-uploader-b0991ec5cea1411237b82e92467603bf9da803f5.tar.gz
Allow users to provide transposed files.HEADmain
Diffstat (limited to 'scripts/rqtl2/phenotypes_qc.py')
-rw-r--r--scripts/rqtl2/phenotypes_qc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py
index 699c291..5c89ca0 100644
--- a/scripts/rqtl2/phenotypes_qc.py
+++ b/scripts/rqtl2/phenotypes_qc.py
@@ -209,12 +209,12 @@ def qc_phenocovar_file(
(f"Record {_lc} in file {filepath.name} has a different "
"number of columns than the number of headings"))),)
_line = dict(zip(_headings, line))
- if not bool(_line["description"]):
+ if not bool(_line.get("description")):
_errs = _errs + (
save_error(InvalidValue(filepath.name,
_line[_headings[0]],
"description",
- _line["description"],
+ _line.get("description"),
"The description is not provided!")),)
rconn.hset(file_fqkey(fqkey, "metadata", filepath),