aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/rqtl2-qc-job-error.html
blob: 524282bb747a31fc05641d61c4fd1494eb5d3c7a (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{%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">
  <caption>{{caption}}</caption>
  <thead>
    <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>
    {%else%}
    <tr>
      <td colspan="4">No errors to display here.</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>

<h3>Missing Files</h3>
<div class="explainer">
  <p>These files are listed in the bundle's control file, but do not actually
    exist in the bundle</p>
</div>
<table id="tbl-errors-missing-files" class="error-table">
  <thead>
    <tr>
      <th>Control File Key</th>
      <th>Bundle File Name</th>
      <th>Message</th>
    </tr>
  </thead>
  <tbody>
    {%for error in (errorsgeneric | selectattr("type", "equalto", "MissingFile"))%}
    <tr>
      <td>{{error.controlfilekey}}</td>
      <td>{{error.filename}}</td>
      <td>{{error.message}}</td>
    </tr>
    {%endfor%}
  </tbody>
</table>

<h3>Other Generic Errors</h3>
{{errors_table("tbl-errors-generic", errorsgeneric| selectattr("type", "ne", "MissingFile"))}}
{%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>
{{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">
  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%}