aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2023-03-01 18:19:08 +0000
committerzsloan2023-03-01 18:19:08 +0000
commit45856ad45a84f75c361396477946de7bd46a64f5 (patch)
tree009c861a435730a7e351f4337646254972637554
parent0ab80b42d322795eeefa32fac557bb1498d9cd5e (diff)
downloadgenenetwork2-45856ad45a84f75c361396477946de7bd46a64f5.tar.gz
Show the log2 of the Mean column when Mean > 100 for Gene global search
-rw-r--r--wqflask/wqflask/templates/gsearch_gene.html11
1 files changed, 9 insertions, 2 deletions
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': "<div style='text-align: right; padding-right: 10px;'>Peak</div> <div style='text-align: right;'>-logP <a href=\"{{ url_for('glossary_blueprint.glossary') }}#LRS\" target=\"_blank\" style=\"color: white;\"><sup>?</sup></a></div>",