From 37904013a43f99a3fffa73d16245d1b79a3d61ba Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 23 Nov 2020 10:35:22 -0600 Subject: Changed correlation matrix cells for traits with zero shared samples to instead say N/A and be a shade of grey --- wqflask/wqflask/templates/correlation_matrix.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wqflask/wqflask/templates/correlation_matrix.html b/wqflask/wqflask/templates/correlation_matrix.html index d556f31a..4e150618 100644 --- a/wqflask/wqflask/templates/correlation_matrix.html +++ b/wqflask/wqflask/templates/correlation_matrix.html @@ -51,8 +51,12 @@ {% if result[0].name == trait.name and result[0].dataset == trait.dataset %} n
{{ result[2] }}
{% else %} + {% if result[1] == 0 %} + N/A + {% else %} {{ '%0.2f' % result[1] }}
{{ result[2] }}
{% endif %} + {% endif %} {% endfor %} {% endfor %} -- cgit v1.2.3