diff options
author | DannyArends | 2016-03-22 17:59:47 +0100 |
---|---|---|
committer | Pjotr Prins | 2016-04-20 10:17:05 +0000 |
commit | 2cbdf59b98ae6061ef083ab29c30111d2ea1f853 (patch) | |
tree | 9740236ecd8c68caf584a118ff96e246edfb96ef | |
parent | 3e1e63f3280a652e57cef5b4a526b321142296ce (diff) | |
download | genenetwork2-2cbdf59b98ae6061ef083ab29c30111d2ea1f853.tar.gz |
Creating the analysis object and passing results to the results template
-rw-r--r-- | wqflask/wqflask/views.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 5e8fb1fe..87ba8b32 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -48,6 +48,7 @@ from wqflask.correlation_matrix import show_corr_matrix from wqflask.correlation import corr_scatter_plot from wqflask.wgcna import wgcna_analysis +from wqflask.ctl import ctl_analysis from utility import temp_data from utility.tools import TEMPDIR @@ -204,7 +205,10 @@ def ctl_setup(): @app.route("/ctl_results", methods=('POST',)) def ctl_results(): print("In ctl, request.form is:", request.form) - return render_template("ctl_results.html", **result) # Display them using the template + ctl = ctl_analysis.CTL() # Start R, load the package and pointers and create the analysis + ctlA = ctl.run_analysis(request.form) # Start the analysis, a ctlA object should be a separate long running thread + result = ctl.process_results(ctlA) # After the analysis is finished store the result + return render_template("ctl_results.html", **result) # Display them using the template @app.route("/news") def news_route(): |