aboutsummaryrefslogtreecommitdiff
path: root/qc_app
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-12 10:44:35 +0300
committerFrederick Muriuki Muriithi2024-02-12 18:17:41 +0300
commitabb55d7e03bf207ebf00b4c71f1bbdd8f58a0ad3 (patch)
tree65d97370d93b7ef19c271ef51f97d6d94b18a695 /qc_app
parent523bd6634539a2e646a7cd4215ad3ee7dbbeeb66 (diff)
downloadgn-uploader-abb55d7e03bf207ebf00b4c71f1bbdd8f58a0ad3.tar.gz
Check for errors in the 'phenose' file.
Diffstat (limited to 'qc_app')
-rw-r--r--qc_app/templates/rqtl2/rqtl2-qc-job-error.html8
-rw-r--r--qc_app/upload/rqtl2.py2
2 files changed, 10 insertions, 0 deletions
diff --git a/qc_app/templates/rqtl2/rqtl2-qc-job-error.html b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html
index 1650a79..524282b 100644
--- a/qc_app/templates/rqtl2/rqtl2-qc-job-error.html
+++ b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html
@@ -90,6 +90,14 @@
{{errors_table("tbl-errors-pheno", errorspheno[0:50])}}
{%endif%}
+{%if errorsphenose | length > 0%}
+<h2 class="heading">Phenose Errors ({{errorsphenose | length}})</h3>
+<div class="explainer">
+ We found the following errors in the 'phenose' file in your R/qtl2 bundle:
+</div>
+{{errors_table("tbl-errors-phenose", errorsphenose[0:50])}}
+{%endif%}
+
{%if errorsphenocovar | length > 0%}
<h2 class="heading">Phenocovar Errors ({{errorsphenocovar | length}})</h3>
<div class="explainer">
diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py
index c45952c..66b219d 100644
--- a/qc_app/upload/rqtl2.py
+++ b/qc_app/upload/rqtl2.py
@@ -211,6 +211,8 @@ def rqtl2_bundle_qc_status(jobid: UUID):
thejob.get("errors-geno", "[]")),
errorspheno=json.loads(
thejob.get("errors-pheno", "[]")),
+ errorsphenose=json.loads(
+ thejob.get("errors-phenose", "[]")),
errorsphenocovar=json.loads(
thejob.get("errors-phenocovar", "[]")),
messages=logmessages)