diff options
author | Alexander Kabui | 2021-05-10 08:24:42 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-05-10 08:24:42 +0300 |
commit | 27538980f93c1d72b0b2d76151312f3fbce4c9a5 (patch) | |
tree | 39ca6113713f93ea4ec345d3bd19ee2c5a479258 /wqflask/wqflask | |
parent | 049a438741d19b1cf6c8c290ec01343b51690b30 (diff) | |
download | genenetwork2-27538980f93c1d72b0b2d76151312f3fbce4c9a5.tar.gz |
add previous endpoint for correlation
Diffstat (limited to 'wqflask/wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index b042a211..19779651 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -881,11 +881,14 @@ def network_graph_page(): def corr_compute_page(): logger.info("In corr_compute, request.form is:", pf(request.form)) logger.info(request.url) - import time - initial_time = time.time() - correlation_results = compute_correlation(request.form) - print(">>>>Time taken by this endpoint",time.time()-initial_time) - return render_template("test_correlation_page.html",correlation_results=correlation_results) + template_vars = show_corr_results.CorrelationResults(request.form) + return render_template("correlation_page.html", **template_vars.__dict__) + + # to test the new correlation api uncomment these lines + + # correlation_results = compute_correlation(request.form) + # print(">>>>Time taken by this endpoint",time.time()-initial_time) + # return render_template("test_correlation_page.html",correlation_results=correlation_results) @app.route("/corr_matrix", methods=('POST',)) def corr_matrix_page(): |