blob: 0dc030b1658086ed4676a7b3ffdfdc6bb19c293f (
about) (
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
|
{% extends "base.html" %}
{% block title %}WCGNA results{% endblock %}
{% block content %} <!-- Start of body -->
<div class="container">
<h1>WGCNA Results</h1>
Analysis found {{results['nmod']}} modules when scanning {{results['nphe']}} phenotypes, measured on {{results['nstr']}} strains.<br>
Additional parameters settings:
<ul>
<li>Soft thresholds checked = {{results['requestform']['SoftThresholds']}}</li>
<li>Power used for this analysis = {{results['Power']}}</li>
<li>TomType = {{results['requestform']['TOMtype']}}</li>
<li>Minimum module size = {{results['requestform']['MinModuleSize'] }}</li>
<li>mergeCutHeight = {{results['requestform']['mergeCutHeight'] }}</li>
</ul>
<h3>Soft threshold table</h3>
<table width="80%">
<tr><th>Power</th><th>SFT.R.sq</th><th>slope</th><th>truncated.R.sq</th><th>mean.k</th><th>median.k</th><th>max.k</th><th>Analysis</th></tr>
{% for r in range(powers[0][0]|length) %}
{% if powers[0][1][r] > 0.85 %}
<tr style="color: #00ff00;">
{% elif powers[0][1][r] > 0.75 %}
<tr style="color: #aaaa00;">
{% else %}
<tr style="color: #ff0000;">
{% endif %}
{% for c in range(powers[0]|length) %}
<td>{{powers[0][c][r]|round(3)}}</td>
{% endfor %}
<td style="color: #000000;">
{% if powers[0][1][r] > 0.75 %}
<input type="submit" value="Redo use power = {{powers[0][0][r]}}" /></td>
{% endif %}
</tr>
{% endfor %}
</table>
<h3>WGCNA module plot</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>Phenotype / Module table</h3>
<table width="80%">
<tr><th>Phenotype</th><th>Module</th></tr>
{% for r in range(results['nphe']) %}
<tr>
<td>{{results['phenotypes'][r][0]}}</td>
<td>{{results['network'][0][r]}}</td>
</tr>
{% endfor %}
</table>
<h3>Module eigen genes</h3>
<table width="80%">
<tr><th>Phenotype</th>
{% for m in range(results['nmod']) %}
<th><input type="submit" value="Add module {{m}} to collection" /></th>
{% endfor %}
</tr>
{% for r in range(results['nstr']) %}
<tr>
<td>{{results['strains'][r][0]}}</td>
{% for m in range(results['nmod']) %}
<td>{{results['network'][2][m][r]}}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
{% endblock %}
|