From 44bcda38241e06a27c386f612d3fc2bae96a1924 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Fri, 30 Apr 2021 02:45:26 +0300 Subject: add template for correlation result --- .../wqflask/templates/test_correlation_page.html | 140 +++++++++++++++++++++ wqflask/wqflask/views.py | 2 +- 2 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 wqflask/wqflask/templates/test_correlation_page.html (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/test_correlation_page.html b/wqflask/wqflask/templates/test_correlation_page.html new file mode 100644 index 00000000..051d84db --- /dev/null +++ b/wqflask/wqflask/templates/test_correlation_page.html @@ -0,0 +1,140 @@ +{% extends "base.html" %} +{% block title %}Correlation Results{% endblock %} +{% block css %} + + + + + + + + +{% endblock %} + +{% block content %} + +
+

Correlation Results for Dataset_name against trait_name for the top allResults

+
+ + + + + + + + + + +
indextrait_nameSample rSample p(r)N
+ +{% endblock %} + +{% block js %} + + + + + + + + + + + + + + + + +{% endblock %} \ No newline at end of file diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 2c239425..3d4376e2 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -885,7 +885,7 @@ def corr_compute_page(): initial_time = time.time() correlation_results = compute_correlation(request.form) print(">>>>Time taken by this endpoint",time.time()-initial_time) - return render_template("demo_correlation_page.html",correlation_results=correlation_results[1:20]) + return render_template("test_correlation_page.html",correlation_results=correlation_results[0:50]) @app.route("/corr_matrix", methods=('POST',)) def corr_matrix_page(): -- cgit v1.2.3