aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorDannyArends2015-09-11 17:49:02 +0200
committerDannyArends2015-09-11 17:49:02 +0200
commit7303dc04e7d129d6751d2875f5841da102bf6fd8 (patch)
tree3113d0b462f625e36a6eeb1d6625a05850d3b5a7 /wqflask
parentcbbe7e8bd625f94809c8423bc5d8fdafa2646042 (diff)
downloadgenenetwork2-7303dc04e7d129d6751d2875f5841da102bf6fd8.tar.gz
Adding a custom wgcna route in gn2, and adding a button to the collections/view.html
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()