From 9376bbb73cc4161ac33e7066dd8fd27367088106 Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Sat, 18 Dec 2021 08:11:37 +0300
Subject: Add templates for the results tables
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi
* Add templates for the tables that will display the results.
---
.../static/new/javascript/partial_correlations.js | 1 +
.../wqflask/templates/partial_correlations.html | 121 +++++++++++++++++++++
2 files changed, 122 insertions(+)
diff --git a/wqflask/wqflask/static/new/javascript/partial_correlations.js b/wqflask/wqflask/static/new/javascript/partial_correlations.js
index 71fac21d..b1b12ee7 100644
--- a/wqflask/wqflask/static/new/javascript/partial_correlations.js
+++ b/wqflask/wqflask/static/new/javascript/partial_correlations.js
@@ -66,6 +66,7 @@ function display_partial_corr_results(data, status, xhr) {
child = document.createElement("p");
child.textContent = data;
parent.appendChild(child);
+ console.log(data);
}
function display_partial_corr_error(xhr, status, error) {
diff --git a/wqflask/wqflask/templates/partial_correlations.html b/wqflask/wqflask/templates/partial_correlations.html
index 08d6fc2a..215ba32e 100644
--- a/wqflask/wqflask/templates/partial_correlations.html
+++ b/wqflask/wqflask/templates/partial_correlations.html
@@ -222,6 +222,127 @@
+
+
+
+ _ |
+ Record |
+ Phenotype |
+ Authors |
+ Year |
+ N |
+ Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) |
+ {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) |
+ delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+
+
+
+
+
+
+ _ |
+ Chr |
+ Megabase |
+ N |
+ Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) |
+ {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) |
+ delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+
+
+
+
+
+ |
+ |
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+
+
+
+
+
+
+ _ |
+ Record |
+ Gene ID |
+ Homologene ID |
+ Symbol |
+ Description |
+ Chr |
+ Megabase |
+ Mean Expr |
+ N |
+ Sample Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ Sample p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) |
+ Sample {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ Sample p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) |
+ delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ Lit Corr |
+ Tissue {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} |
+ Tissue p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) |
+
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
--
cgit v1.2.3