From 8c0734397924bc83d2110a0020b664154b25c8af Mon Sep 17 00:00:00 2001 From: francastell Date: Wed, 11 Dec 2024 11:07:03 -0500 Subject: [PATCH] G3-522 adding histogram to p-score and q-score threshold types --- pyproject.toml | 2 +- src/templates/viewThreshold_new.html | 156 +++++++++++++++++---------- 2 files changed, 102 insertions(+), 56 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 14e24146..56373a2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "geneweaver-legacy" -version = "1.5.4" +version = "1.5.5" description = "" authors = ["Alexander Berger "] readme = "README.md" diff --git a/src/templates/viewThreshold_new.html b/src/templates/viewThreshold_new.html index eb0405b2..610e11eb 100644 --- a/src/templates/viewThreshold_new.html +++ b/src/templates/viewThreshold_new.html @@ -30,9 +30,9 @@

Set GeneSet Threshold

{% else %}
+ {% set threshold_low = threshold[0] if threshold[0] != 'None' else minVal %} + {% set threshold_high = threshold[1] if threshold[1] != '0' else maxVal %} {% if threshold_type == 4 or threshold_type == 5 %} - {% set threshold_low = threshold[0] if threshold[0] != 'None' else minVal %} - {% set threshold_high = threshold[1] if threshold[1] != '0' else maxVal %} {% set threshold_name = 'a correlation' if threshold_type == 4 else 'an effect' %}

Current Threshold Values: {{ threshold[0] }} @@ -78,25 +78,25 @@

Set GeneSet Threshold

-
-
-

-
+
+

-
-
-
+
-
-

** Use Box Select tool to set a threshold range on the histogram, or enter values in the input fields.

-

* Selected threshold range in red color

-
+

** Use Box Select tool to set a threshold range on the histogram, or enter values in the input fields.

+

* Selected threshold range in red color

{% else %} +
+
+
+
+

+
@@ -151,7 +151,6 @@

Set GeneSet Threshold

$(document).ready(function () { $('.setThresh').on('click', function (e) { const access_token = getCookie('access_token'); - console.log(access_token); let value = $(this).val(); let valueHigh = null; let newTresh; @@ -160,7 +159,6 @@

Set GeneSet Threshold

value = $parent.find('.threshLow').val(); valueHigh = $parent.find('.threshHigh').val(); } - console.log('Clicked button with value:', value, valueHigh); if (valueHigh === '' || valueHigh == null) { newTresh = { threshold: value, @@ -195,20 +193,30 @@

Set GeneSet Threshold

}); - {% if threshold_type == 4 or threshold_type == 5 %} + {% if threshold_type != 3 %}