From 1d748f1ca93ce568f09c9d95e27b442d5d56fce0 Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Wed, 5 Jan 2022 08:00:21 +0300
Subject: Include the "Locus" in the display
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi
---
wqflask/wqflask/static/new/javascript/partial_correlations.js | 2 ++
wqflask/wqflask/templates/partial_correlations.html | 2 ++
2 files changed, 4 insertions(+)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/static/new/javascript/partial_correlations.js b/wqflask/wqflask/static/new/javascript/partial_correlations.js
index 1cfb655e..1a06c48f 100644
--- a/wqflask/wqflask/static/new/javascript/partial_correlations.js
+++ b/wqflask/wqflask/static/new/javascript/partial_correlations.js
@@ -126,6 +126,8 @@ function display_geno_results(primary, controls, correlations, method) {
correlations.forEach(function(item, index, arr) {
new_row = template_row.cloneNode(true);
new_row.setAttribute("class", "results-row");
+ new_row.querySelector(
+ 'td[data-column-heading="Locus"]').innerHTML = item["trait_name"];
new_row.querySelector(
'td[data-column-heading="Chr"]').innerHTML = item["chr"];
new_row.querySelector(
diff --git a/wqflask/wqflask/templates/partial_correlations.html b/wqflask/wqflask/templates/partial_correlations.html
index 54468155..4be4890e 100644
--- a/wqflask/wqflask/templates/partial_correlations.html
+++ b/wqflask/wqflask/templates/partial_correlations.html
@@ -247,6 +247,7 @@
_
+ Locus
Chr
Megabase
N
@@ -261,6 +262,7 @@