aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-06-15 18:02:18 +0000
committerzsloan2021-06-15 18:02:18 +0000
commitafee4d625248565857df98d3510f680ae6204864 (patch)
treeccbd8747e732dcad03475d321d3e6dd8e58204b6 /wqflask
parentc458bf0ad731e5e5fd9cbd0686936b3a441bae63 (diff)
downloadgenenetwork2-afee4d625248565857df98d3510f680ae6204864.tar.gz
Commented out WGCNA/CTL imports and endpoints since they import rpy2
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py52
1 files changed, 26 insertions, 26 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 0714bd20..f96e5034 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -69,8 +69,8 @@ from wqflask.correlation import show_corr_results
from wqflask.correlation.correlation_gn3_api import compute_correlation
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 wqflask.wgcna import wgcna_analysis
+# from wqflask.ctl import ctl_analysis
from wqflask.snp_browser import snp_browser
from wqflask.search_results import SearchResultPage
from wqflask.export_traits import export_search_results_csv
@@ -357,18 +357,18 @@ def wcgna_setup():
return render_template("wgcna_setup.html", **request.form)
-@app.route("/wgcna_results", methods=('POST',))
-def wcgna_results():
- logger.info("In wgcna, request.form is:", request.form)
- logger.info(request.url)
- # Start R, load the package and pointers and create the analysis
- wgcna = wgcna_analysis.WGCNA()
- # Start the analysis, a wgcnaA object should be a separate long running thread
- wgcnaA = wgcna.run_analysis(request.form)
- # After the analysis is finished store the result
- result = wgcna.process_results(wgcnaA)
- # Display them using the template
- return render_template("wgcna_results.html", **result)
+# @app.route("/wgcna_results", methods=('POST',))
+# def wcgna_results():
+# logger.info("In wgcna, request.form is:", request.form)
+# logger.info(request.url)
+# # Start R, load the package and pointers and create the analysis
+# wgcna = wgcna_analysis.WGCNA()
+# # Start the analysis, a wgcnaA object should be a separate long running thread
+# wgcnaA = wgcna.run_analysis(request.form)
+# # After the analysis is finished store the result
+# result = wgcna.process_results(wgcnaA)
+# # Display them using the template
+# return render_template("wgcna_results.html", **result)
@app.route("/ctl_setup", methods=('POST',))
@@ -380,18 +380,18 @@ def ctl_setup():
return render_template("ctl_setup.html", **request.form)
-@app.route("/ctl_results", methods=('POST',))
-def ctl_results():
- logger.info("In ctl, request.form is:", request.form)
- logger.info(request.url)
- # Start R, load the package and pointers and create the analysis
- ctl = ctl_analysis.CTL()
- # Start the analysis, a ctlA object should be a separate long running thread
- ctlA = ctl.run_analysis(request.form)
- # After the analysis is finished store the result
- result = ctl.process_results(ctlA)
- # Display them using the template
- return render_template("ctl_results.html", **result)
+# @app.route("/ctl_results", methods=('POST',))
+# def ctl_results():
+# logger.info("In ctl, request.form is:", request.form)
+# logger.info(request.url)
+# # Start R, load the package and pointers and create the analysis
+# ctl = ctl_analysis.CTL()
+# # Start the analysis, a ctlA object should be a separate long running thread
+# ctlA = ctl.run_analysis(request.form)
+# # After the analysis is finished store the result
+# result = ctl.process_results(ctlA)
+# # Display them using the template
+# return render_template("ctl_results.html", **result)
@app.route("/news")