aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/rqtl2-qc-job-error.html
blob: 49df061227e905aa12fbe4911a77abd31bc95103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{%extends "base.html"%}
{%from "cli-output.html" import cli_output%}

{%block title%}R/qtl2 bundle: QC Job Error{%endblock%}

{%macro errors_table(tableid, errors)%}
<table id="{{tableid}}"
       class="error-table"
       style="display: block; overflow: scroll; max-height: 250px;">
  <thead style="position: sticky; top: 0;">
    <tr>
      <th>Line</th>
      <th>Column</th>
      <th>Value</th>
      <th>Message</th>
    </tr>
  </thead>
  <tbody>
    {%for error in errors%}
    <tr>
      <td>{{error.line}}</td>
      <td>{{error.column}}</td>
      <td>{{error.value}}</td>
      <td>{{error.message}}</td>
    </tr>
    {%endfor%}
  </tbody>
</table>
{%endmacro%}

{%block contents%}
<h1 class="heading">R/qtl2 bundle: QC job Error</h1>

<div class="explainer">
  <p>The R/qtl2 bundle has failed some <emph>Quality Control</emph> checks.</p>
  <p>We list below some of the errors that need to be fixed before the data can
    be uploaded onto GeneNetwork.</p>
</div>

{%if errorsgeneric | length > 0%}
<h2 class="heading">Generic Errors ({{errorsgeneric | length}})</h3>
<div class="explainer">
  We found the following generic errors in your R/qtl2 bundle:
</div>
<ul class="alert-error qc-error-display">
  {%for msg in errorsgeneric%}
  <li>{{msg}}</li>
  {%endfor%}
</ul>
{%endif%}

{%if errorsgeno | length > 0%}
<h2 class="heading">Geno Errors ({{errorsgeno | length}})</h3>
<div class="explainer">
  We found the following errors in the 'geno' file in your R/qtl2 bundle:
</div>
{{errors_table("tbl-errors-geno", errorsgeno[0:50])}}
{%endif%}

{%if errorspheno | length > 0%}
<h2 class="heading">Pheno Errors ({{errorspheno | length}})</h3>
<div class="explainer">
  We found the following errors in the 'pheno' file in your R/qtl2 bundle:
</div>
{{errorspheno}}
{%endif%}

{%if errorsphenocovar | length > 0%}
<h2 class="heading">Phenocovar Errors ({{errorsphenocovar | length}})</h3>
<div class="explainer">
  We found the following errors in the 'phenocovar' file in your R/qtl2 bundle:
</div>
{{errorsphenocovar}}
{%endif%}

<h4>stdout</h4>
{{cli_output(job, "stdout")}}

<h4>stderr</h4>
{{cli_output(job, "stderr")}}

<h4>Log</h4>
<div class="cli-output">
  {%for msg in messages%}
  {{msg}}<br />
  {%endfor%}
</div>

{%endblock%}