aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-10-25 13:21:03 -0500
committerzsloan2019-10-25 13:21:03 -0500
commit4def674f52f63f37ed986c9745628bcc6b8f7d82 (patch)
treea0aa82dc2c70025f19e3c96fecc67bdb0ed088e5
parent557428ce5c4df45f1f5b731df93e173770feb86c (diff)
downloadgenenetwork2-4def674f52f63f37ed986c9745628bcc6b8f7d82.tar.gz
Fixed issue where correlation matrix wouldn't display correctly if two traits from different datasets had the same trait ID
-rw-r--r--wqflask/wqflask/templates/correlation_matrix.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/correlation_matrix.html b/wqflask/wqflask/templates/correlation_matrix.html
index 34a15c6a..9af52021 100644
--- a/wqflask/wqflask/templates/correlation_matrix.html
+++ b/wqflask/wqflask/templates/correlation_matrix.html
@@ -48,7 +48,7 @@
</div>
</td>
{% for result in corr_results[loop.index-1] %}
- {% if result[0].name == trait.name %}
+ {% if result[0].name == trait.name and result[0].dataset == trait.dataset %}
<td nowrap="ON" align="center" bgcolor="#cccccc" style="padding: 3px; line-height: 1.1;"><a href="/show_trait?trait_id={{ trait.name }}&dataset={{ trait.dataset.name }}"><font style="font-size: 12px; color: #3071a9; font-weight: bold;" ><em>n</em><br>{{ result[2] }}</font></a></td>
{% else %}
<td nowrap="ON" align="middle" class="corr_cell" style="padding: 3px; line-height: 1.1;"><a href="/corr_scatter_plot?dataset_1={{ trait.dataset.name }}&dataset_2={{ result[0].dataset.name }}&trait_1={{ trait.name }}&trait_2={{ result[0].name }}"><font style="font-size: 12px; color: #3071a9; font-weight: bold;" ><span class="corr_value">{{ '%0.2f' % result[1] }}</span><br>{{ result[2] }}</font></a></td>