From 6d833e9f99ff6275fd1997c6993419a66bbbe392 Mon Sep 17 00:00:00 2001
From: DannyArends
Date: Thu, 8 Oct 2015 10:49:23 +0200
Subject: Massive update to the templates, adding error checking and handling +
the eigen genes per module
---
wqflask/wqflask/templates/wgcna_results.html | 65 +++++++++++++++++++++-------
wqflask/wqflask/templates/wgcna_setup.html | 19 +++++---
2 files changed, 61 insertions(+), 23 deletions(-)
diff --git a/wqflask/wqflask/templates/wgcna_results.html b/wqflask/wqflask/templates/wgcna_results.html
index 077238a5..0dc030b1 100644
--- a/wqflask/wqflask/templates/wgcna_results.html
+++ b/wqflask/wqflask/templates/wgcna_results.html
@@ -4,40 +4,73 @@
{% block content %}
WGCNA Results
-
Soft threshold table
+ Analysis found {{results['nmod']}} modules when scanning {{results['nphe']}} phenotypes, measured on {{results['nstr']}} strains.
+ Additional parameters settings:
+
+ Soft thresholds checked = {{results['requestform']['SoftThresholds']}}
+ Power used for this analysis = {{results['Power']}}
+ TomType = {{results['requestform']['TOMtype']}}
+ Minimum module size = {{results['requestform']['MinModuleSize'] }}
+ mergeCutHeight = {{results['requestform']['mergeCutHeight'] }}
+
+
+
Soft threshold table
+
WGCNA module plot
+
+
-
Phenotype / Module table
- debug: {{results['network']|length}}
- debug: {{results['network'][0]|length}}
- {{phenotypes[0][0]}}
+
Phenotype / Module table
Phenotype Module
- {% for r in range(results['network'][0]|length) %}
+ {% for r in range(results['nphe']) %}
- {{phenotypes[r][0]}}
+ {{results['phenotypes'][r][0]}}
{{results['network'][0][r]}}
{% endfor %}
-
WGCNA module plot
-
-
+
Module eigen genes
+
{% endblock %}
diff --git a/wqflask/wqflask/templates/wgcna_setup.html b/wqflask/wqflask/templates/wgcna_setup.html
index 821e4954..49181938 100644
--- a/wqflask/wqflask/templates/wgcna_setup.html
+++ b/wqflask/wqflask/templates/wgcna_setup.html
@@ -6,17 +6,22 @@
WGCNA analysis parameters
- Phenotypes used as input: {{request.form}}
-
+ {% if request.form['trait_list'].split(",")|length <= 4 %}
+
+
ERROR: Too few phenotypes as input
+ Please make sure you select enough phenotypes / genes to perform WGCNA,
+ your collection needs to contain at least 4 different phenotypes. You provided {{request.form['trait_list'].split(',')|length}} phenotypes as input
+ {% else %}
+
+ {% endif %}
{% endblock %}
--
cgit v1.2.3