aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/wqflask/templates/collections/view.html12
-rw-r--r--wqflask/wqflask/templates/wgcna_results.html (renamed from wqflask/wqflask/templates/wcgna_results.html)0
-rwxr-xr-xwqflask/wqflask/views.py4
3 files changed, 16 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index 29c65058..f3e9f1b9 100755
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -38,6 +38,18 @@
<input type="submit" class="btn btn-primary" value="Correlation Matrix" />
</div>
</form>
+ <form action="/wgcna" method="post">
+ {% if uc %}
+ <input type="hidden" name="uc_id" id="uc_id" value="{{ uc.id }}" />
+ {% endif %}
+ <input type="hidden" name="trait_list" id="trait_list" value= "
+ {% for this_trait in trait_obs %}
+ {{ this_trait.name }}:{{ this_trait.dataset.name }},
+ {% endfor %}" >
+ <div class="col-xs-2 controls">
+ <input type="submit" class="btn btn-primary" value="WGCNA Analysis" />
+ </div>
+ </form>
<form action="/heatmap" method="post">
{% if uc %}
<input type="hidden" name="uc_id" id="uc_id" value="{{ uc.id }}" />
diff --git a/wqflask/wqflask/templates/wcgna_results.html b/wqflask/wqflask/templates/wgcna_results.html
index b74b84ae..b74b84ae 100644
--- a/wqflask/wqflask/templates/wcgna_results.html
+++ b/wqflask/wqflask/templates/wgcna_results.html
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 3cff9a0c..acbbf203 100755
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -174,6 +174,10 @@ def help():
doc = docs.Docs("help")
return render_template("docs.html", **doc.__dict__)
+@app.route("/wgcna", methods=('POST',))
+def wcgna():
+ return render_template("wgcna_results.html")
+
@app.route("/news")
def news_route():
newsobject = news.News()