From 45856ad45a84f75c361396477946de7bd46a64f5 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 1 Mar 2023 18:19:08 +0000 Subject: Show the log2 of the Mean column when Mean > 100 for Gene global search --- wqflask/wqflask/templates/gsearch_gene.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html index 03e5019c..6bc92377 100644 --- a/wqflask/wqflask/templates/gsearch_gene.html +++ b/wqflask/wqflask/templates/gsearch_gene.html @@ -175,8 +175,15 @@ 'orderSequence': [ "desc", "asc"], 'width': "30px", 'targets': 10, - 'data': "mean", - 'defaultContent': "N/A" + 'data': null, + 'defaultContent': "N/A", + 'render': function(data) { + if (data.mean > 100) { + return Math.log2(data.mean).toFixed(3) + } else { + return data.mean + } + } }, { 'title': "