diff options
author | Frederick Muriuki Muriithi | 2022-01-05 08:00:21 +0300 |
---|---|---|
committer | zsloan | 2022-01-29 00:42:44 -0600 |
commit | 1d748f1ca93ce568f09c9d95e27b442d5d56fce0 (patch) | |
tree | 415f106ad7bf233669c98da23ecde968fbe6b043 /wqflask | |
parent | 4d8ab31fd51d9c3ff7334dacd4212854f5316d2d (diff) | |
download | genenetwork2-1d748f1ca93ce568f09c9d95e27b442d5d56fce0.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> |