aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/templates/ephewas_analysis.html10
-rw-r--r--wqflask/wqflask/templates/mediation_analysis.html10
-rw-r--r--wqflask/wqflask/templates/phewas_analysis.html24
3 files changed, 39 insertions, 5 deletions
diff --git a/wqflask/wqflask/templates/ephewas_analysis.html b/wqflask/wqflask/templates/ephewas_analysis.html
index d5e71fa7..f49ec44f 100644
--- a/wqflask/wqflask/templates/ephewas_analysis.html
+++ b/wqflask/wqflask/templates/ephewas_analysis.html
@@ -1,9 +1,15 @@
{% extends "base.html" %}
-{% block title %}ePheWAS analysis{% endblock %}
+{% block title %}PheWAS analysis{% endblock %}
{% block content %} <!-- Start of body -->
<div class="container">
<h1>ePheWAS analysis results</h1>
- YAY ! We have our own route
+ <h2>Top 10 ePheWAS hits</h2>
+ <table width="80%">
+ <tr><th>Phenotype</th><th>Phenosome</th><th>Additional</th><th>LOD</th><th>LOD<sub>BH</sub></th></tr>
+ <tr><td>Phenotype 1</td><td>Phenosome 1</td><td>Additional 1</td><td>LOD 1</td><td>BH 1</td></tr>
+ </table>
+ <h2>Download all ePheWAS results</h2>
+ <a href="" class="btn submit_special btn-primary">Download CSV</a> <a href="" class="btn submit_special btn-primary">Download RData</a>
</div>
{% endblock %}
diff --git a/wqflask/wqflask/templates/mediation_analysis.html b/wqflask/wqflask/templates/mediation_analysis.html
index ee5a5016..2804a14f 100644
--- a/wqflask/wqflask/templates/mediation_analysis.html
+++ b/wqflask/wqflask/templates/mediation_analysis.html
@@ -1,9 +1,15 @@
{% extends "base.html" %}
-{% block title %}Mediation analysis{% endblock %}
+{% block title %}PheWAS analysis{% endblock %}
{% block content %} <!-- Start of body -->
<div class="container">
<h1>Mediation analysis results</h1>
- YAY ! We have our own route
+ <h2>Top 10 Mediation hits</h2>
+ <table width="80%">
+ <tr><th>With</th><th>Phenosome</th><th>Additional</th><th>LOD</th><th>LOD<sub>BH</sub></th></tr>
+ <tr><td>Phenotype</td><td>Phenosome</td><td>Additional 1</td><td>LOD 1</td><td>BH 1</td><td><a href="" class="btn submit_special btn-primary">Mediate</a></td></tr>
+ </table>
+ <h2>Download all Mediation results</h2>
+ <a href="" class="btn submit_special btn-primary">Download CSV</a> <a href="" class="btn submit_special btn-primary">Download RData</a>
</div>
{% endblock %}
diff --git a/wqflask/wqflask/templates/phewas_analysis.html b/wqflask/wqflask/templates/phewas_analysis.html
index f72564ae..fbe7c364 100644
--- a/wqflask/wqflask/templates/phewas_analysis.html
+++ b/wqflask/wqflask/templates/phewas_analysis.html
@@ -4,7 +4,29 @@
{% block content %} <!-- Start of body -->
<div class="container">
<h1>PheWAS analysis results</h1>
- YAY ! We have our own route<br>
+ <h2>Top 5 PheWAS hits</h2>
+ <table width="100%">
+ <tr><th>GN ID</th><th>Phenotype</th><th>Phenosome</th><th>LOD</th></tr>
+ {% for r in range(5) %}
+ <tr>
+ {% for c in range(results['phewas3']|length) %}
+ <td>
+ {% if c == 4 %}
+ {{results['phewas3'][c][r]|float|round(2)}}
+ {% else %}
+ {{results['phewas3'][c][r]}}
+ {% endif %}
+ </td>
+ {%- endfor %}
+ {%- endfor %}
+
+ </table>
+<!-- {{ results['phewas1'] }}
+ {{ results['phewas2'] }}
+ {{ results['phewas3'] }} -->
+ <h2>Download PheWAS results</h2>
+ <a href="" class="btn submit_special btn-primary">Download CSV</a> <a href="" class="btn submit_special btn-primary">Download RData</a>
+ <h3>PheWAS manhattan plot</h3>
<a href="/tmp/{{ results['imgurl1'] }}">
<img alt="Embedded Image" src="data:image/png;base64,
{% for elem in results['imgdata1'] -%}