diff options
author | Frederick Muriuki Muriithi | 2022-01-05 08:00:21 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-01-28 08:07:27 +0300 |
commit | e7eb1b8b3bad8834e7bfdcc92a777147a5a97079 (patch) | |
tree | ca2317a29c1812845be4cce84b5793605351ad11 /wqflask | |
parent | d1a65f4a345d7d890399542a45eaa90c419f3b77 (diff) | |
download | genenetwork2-e7eb1b8b3bad8834e7bfdcc92a777147a5a97079.tar.gz |
Include the "Locus" in the display
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/partial_correlations.js | 2 | ||||
-rw-r--r-- | wqflask/wqflask/templates/partial_correlations.html | 2 |
2 files changed, 4 insertions, 0 deletions
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 @@ -127,6 +127,8 @@ function display_geno_results(primary, controls, correlations, method) { 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( 'td[data-column-heading="Megabase"]').innerHTML = item["mb"]; 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 @@ <thead> <tr> <th>_</th> + <th>Locus</th> <th>Chr</th> <th>Megabase</th> <th>N</th> @@ -261,6 +262,7 @@ <tbody> <tr class="template-geno-results-row"> <td data-column-heading="_"></td> + <td data-column-heading="Locus"></td> <td data-column-heading="Chr"></td> <td data-column-heading="Megabase"></td> <td data-column-heading="N"></td> |