From c809fd831a49ea666ba61e84a44172e8468f48c5 Mon Sep 17 00:00:00 2001
From: DannyArends
Date: Thu, 16 Feb 2017 19:01:31 +0100
Subject: Updated templates to show a table for GN2
---
wqflask/wqflask/templates/ephewas_analysis.html | 10 ++++++++--
wqflask/wqflask/templates/mediation_analysis.html | 10 ++++++++--
wqflask/wqflask/templates/phewas_analysis.html | 24 ++++++++++++++++++++++-
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 %}
ePheWAS analysis results
- YAY ! We have our own route
+
Top 10 ePheWAS hits
+
+ Phenotype | Phenosome | Additional | LOD | LODBH |
+ Phenotype 1 | Phenosome 1 | Additional 1 | LOD 1 | BH 1 |
+
+
Download all ePheWAS results
+
Download CSV Download RData
{% 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 %}
Mediation analysis results
- YAY ! We have our own route
+
Top 10 Mediation hits
+
+ With | Phenosome | Additional | LOD | LODBH |
+ Phenotype | Phenosome | Additional 1 | LOD 1 | BH 1 | Mediate |
+
+
Download all Mediation results
+
Download CSV Download RData
{% 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 %}
PheWAS analysis results
- YAY ! We have our own route
+
Top 5 PheWAS hits
+
+ GN ID | Phenotype | Phenosome | LOD |
+ {% for r in range(5) %}
+
+ {% for c in range(results['phewas3']|length) %}
+
+ {% if c == 4 %}
+ {{results['phewas3'][c][r]|float|round(2)}}
+ {% else %}
+ {{results['phewas3'][c][r]}}
+ {% endif %}
+ |
+ {%- endfor %}
+ {%- endfor %}
+
+
+
+
Download PheWAS results
+
Download CSV Download RData
+
PheWAS manhattan plot