aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDannyArends2017-02-08 09:47:47 +0100
committerDannyArends2017-02-08 09:47:47 +0100
commite17ad8ac7b41ae79da2d4081d52686cef0e287b3 (patch)
tree8266f869cfb20395bb73566019c42b8aa2f3856c
parent3af320e379c7053b6a5232a895193c1d058192c3 (diff)
downloadgenenetwork2-e17ad8ac7b41ae79da2d4081d52686cef0e287b3.tar.gz
Renamed the analysis code files to include the word analysis to not conflict with the routes in views.py
-rw-r--r--wqflask/wqflask/auwerx/__init__.py0
-rw-r--r--wqflask/wqflask/auwerx/ephewas_analysis.py (renamed from wqflask/wqflask/auwerx/ephewas.py)0
-rw-r--r--wqflask/wqflask/auwerx/mediation_analysis.py (renamed from wqflask/wqflask/auwerx/mediation.py)0
-rw-r--r--wqflask/wqflask/auwerx/phewas_analysis.py (renamed from wqflask/wqflask/auwerx/phewas.py)0
-rw-r--r--wqflask/wqflask/views.py6
5 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/auwerx/__init__.py b/wqflask/wqflask/auwerx/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/wqflask/wqflask/auwerx/__init__.py
diff --git a/wqflask/wqflask/auwerx/ephewas.py b/wqflask/wqflask/auwerx/ephewas_analysis.py
index edfb2801..edfb2801 100644
--- a/wqflask/wqflask/auwerx/ephewas.py
+++ b/wqflask/wqflask/auwerx/ephewas_analysis.py
diff --git a/wqflask/wqflask/auwerx/mediation.py b/wqflask/wqflask/auwerx/mediation_analysis.py
index 48d02dc2..48d02dc2 100644
--- a/wqflask/wqflask/auwerx/mediation.py
+++ b/wqflask/wqflask/auwerx/mediation_analysis.py
diff --git a/wqflask/wqflask/auwerx/phewas.py b/wqflask/wqflask/auwerx/phewas_analysis.py
index 399e056c..399e056c 100644
--- a/wqflask/wqflask/auwerx/phewas.py
+++ b/wqflask/wqflask/auwerx/phewas_analysis.py
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 91e2ffb2..047982bf 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -49,6 +49,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 wqflask.auwerx import phewas_analysis
from utility import temp_data
from utility.tools import SQL_URI,TEMPDIR,USE_REDIS,USE_GN_SERVER,GN_SERVER_URL
@@ -249,7 +250,10 @@ def wcgna_results():
@app.route("/phewas", methods=('POST',))
def phewas():
logger.info("In phewas, request.form is:", request.form) # We are going to get additional user input for the analysis
- return render_template("phewas_analysis.html", **request.form) # Display them using the template
+ phewasO = phewas_analysis.PheWAS() # Start R, load the package and pointers and create the analysis
+ phewasA = phewasO.run_analysis(request.form)
+ result = phewasO.process_results(phewasA) # After the analysis is finished store the result
+ return render_template("phewas_analysis.html", **result) # Display them using the template
@app.route("/ephewas", methods=('POST',))
def ephewas():