aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorDannyArends2015-09-11 18:16:01 +0200
committerDannyArends2015-09-11 18:16:01 +0200
commit1109861a705eaf1dc1efb865a852f87860d0bcac (patch)
treea58305ad72e12c5d18dfc27199988a3f40bffda4 /wqflask
parent17c9b0f9130c2ccd3b050cd9929f9ca6d3ab7307 (diff)
downloadgenenetwork2-1109861a705eaf1dc1efb865a852f87860d0bcac.tar.gz
Adding empty WGCNA class, and creating it in views.py
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/wqflask/views.py7
-rwxr-xr-xwqflask/wqflask/wgcna/__init__.py0
-rw-r--r--wqflask/wqflask/wgcna/wgcna_analysis.py12
3 files changed, 18 insertions, 1 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index acbbf203..cd186078 100755
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -46,6 +46,9 @@ from wqflask.interval_mapping import interval_mapping
from wqflask.correlation import show_corr_results
from wqflask.correlation_matrix import show_corr_matrix
from wqflask.correlation import corr_scatter_plot
+
+from wqflask.wgcna import wgcna_analysis
+
from utility import temp_data
from base import webqtlFormData
@@ -176,6 +179,8 @@ def help():
@app.route("/wgcna", methods=('POST',))
def wcgna():
+ print("In wgcna, request.form is:", request.form)
+ template_vars = wgcna_analysis.WGCNA(request.form)
return render_template("wgcna_results.html")
@app.route("/news")
@@ -327,7 +332,7 @@ def marker_regression_page():
'mapmethod_rqtl_geno',
'mapmodel_rqtl_geno'
)
- print("Random Print too see if it is running:", initial_start_vars)
+ print("Marker regression called with initial_start_vars:", initial_start_vars)
start_vars = {}
for key, value in initial_start_vars.iteritems():
if key in wanted or key.startswith(('value:')):
diff --git a/wqflask/wqflask/wgcna/__init__.py b/wqflask/wqflask/wgcna/__init__.py
new file mode 100755
index 00000000..e69de29b
--- /dev/null
+++ b/wqflask/wqflask/wgcna/__init__.py
diff --git a/wqflask/wqflask/wgcna/wgcna_analysis.py b/wqflask/wqflask/wgcna/wgcna_analysis.py
new file mode 100644
index 00000000..824b943c
--- /dev/null
+++ b/wqflask/wqflask/wgcna/wgcna_analysis.py
@@ -0,0 +1,12 @@
+
+
+class WGCNA(object):
+ def __init__(self, start_vars):
+ print("Initialization of WGCNA")
+
+ def run_wgcna(self):
+ print("Starting WGCNA analysis")
+
+ def process_wgcna_results(self, results):
+ print("Processing WGCNA output")
+