blob: 914c1d432c94ccc830641bcd4b498b0a0c42c2a7 (
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
|
{% extends "base.html" %}
{% block title %}CTL results{% endblock %}
{% block content %} <!-- Start of body -->
<div class="container">
<h1>CTL Results</h1>
{{(request.form['trait_list'].split(',')|length -1)}} phenotypes as input<br>
<h3>Figure</h3>
<a href="/tmp/{{ results['imgurl'] }}">
<img alt="Embedded Image" src="data:image/png;base64,
{% for elem in results['imgdata'] -%}
{% print("%c"|format(elem)) %}
{%- endfor %}
" /></a>
<h3>Tabular results</h3>
<table width="80%">
<tr><th>trait</th><th>marker</th><th>trait</th><th>LOD</th><th>dCor</th></tr>
significant CTL:<br>
{% for r in range(results['ctlresult'][0]|length) %}
<tr>
{% for c in range(results['ctlresult']|length) %}
<td>
{% if c > 2 %}
{{results['ctlresult'][c][r]|float|round(2)}}
{% else %}
{{results['ctlresult'][c][r]}}
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
{% endblock %}
|