about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scripts/rqtl2/phenotypes_qc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py
index 26c049b..bfbfab6 100644
--- a/scripts/rqtl2/phenotypes_qc.py
+++ b/scripts/rqtl2/phenotypes_qc.py
@@ -209,11 +209,11 @@ def qc_phenocovar_file(
 
             return _errs, _lc+1
 
-        return {
-            filepath.name: dict(zip(
-                ("errors", "linecount"),
-                reduce(collect_errors, _csvfile, (_errors, 1))))
-        }
+        _errors, _linecount = reduce(collect_errors, _csvfile, (_errors, 1))
+        rconn.hset(
+            f"{fqkey}:metadata",
+            mapping={"linecount": _linecount, "total-errors": len(_errors)})
+        return {filepath.name: {"errors": _errors, "linecount": _linecount}}
 
 
 def merge_dicts(*dicts):