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 threshold table

{% for r in range(powers[0][0]|length) %} - + {% if powers[0][1][r] > 0.85 %} + + {% elif powers[0][1][r] > 0.75 %} + + {% else %} + + {% endif %} {% for c in range(powers[0]|length) %} {% endfor %} - + + {% endif %} + {% endfor %}
PowerSFT.R.sqslopetruncated.R.sqmean.kmedian.kmax.kAnalysis
{{powers[0][c][r]|round(3)}}
+ {% if powers[0][1][r] > 0.75 %} +
+

WGCNA module plot

+ + Embedded Image -

Phenotype / Module table

- debug: {{results['network']|length}} - debug: {{results['network'][0]|length}} - {{phenotypes[0][0]}} +

Phenotype / Module table

- {% for r in range(results['network'][0]|length) %} + {% for r in range(results['nphe']) %} - + {% endfor %}
PhenotypeModule
{{phenotypes[r][0]}}{{results['phenotypes'][r][0]}} {{results['network'][0][r]}}
-

WGCNA module plot

- - Embedded Image +

Module eigen genes

+ + + {% for m in range(results['nmod']) %} + + {% endfor %} + + {% for r in range(results['nstr']) %} + + + {% for m in range(results['nmod']) %} + + {% endfor %} + + {% endfor %} +
Phenotype
{{results['strains'][r][0]}}{{results['network'][2][m][r]}}
{% 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 %} + - - - - - + + + +
Soft threshold:
Power:
Minimum module size:
TOMtype:
mergeCutHeight:
Soft threshold:
Minimum module size:
TOMtype:
mergeCutHeight:
+ {% endif %}
{% endblock %} -- cgit v1.2.3