From 4729abd0ab7a8fbeb700a278ac8bdfcf62ab79ac Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 10 Feb 2024 06:57:23 +0300 Subject: Collect and display errors on 'geno' files in the bundle. --- qc_app/templates/rqtl2/rqtl2-qc-job-error.html | 49 +++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'qc_app/templates') diff --git a/qc_app/templates/rqtl2/rqtl2-qc-job-error.html b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html index f9a912c..49df061 100644 --- a/qc_app/templates/rqtl2/rqtl2-qc-job-error.html +++ b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html @@ -3,6 +3,31 @@ {%block title%}R/qtl2 bundle: QC Job Error{%endblock%} +{%macro errors_table(tableid, errors)%} + + + + + + + + + + + {%for error in errors%} + + + + + + + {%endfor%} + +
LineColumnValueMessage
{{error.line}}{{error.column}}{{error.value}}{{error.message}}
+{%endmacro%} + {%block contents%}

R/qtl2 bundle: QC job Error

@@ -24,7 +49,29 @@ {%endif%} -

list other errors here by file type, I think …

+{%if errorsgeno | length > 0%} +

Geno Errors ({{errorsgeno | length}})

+
+ We found the following errors in the 'geno' file in your R/qtl2 bundle: +
+{{errors_table("tbl-errors-geno", errorsgeno[0:50])}} +{%endif%} + +{%if errorspheno | length > 0%} +

Pheno Errors ({{errorspheno | length}})

+
+ We found the following errors in the 'pheno' file in your R/qtl2 bundle: +
+{{errorspheno}} +{%endif%} + +{%if errorsphenocovar | length > 0%} +

Phenocovar Errors ({{errorsphenocovar | length}})

+
+ We found the following errors in the 'phenocovar' file in your R/qtl2 bundle: +
+{{errorsphenocovar}} +{%endif%}

stdout

{{cli_output(job, "stdout")}} -- cgit v1.2.3