aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-10-14 23:35:41 +0000
committerzsloan2022-10-14 23:35:41 +0000
commit4eb4beafd2643bc4ae47bd034024efa97103d314 (patch)
tree68ed5e8fcb55a2155d2443b8df2dd1e474358ab9
parent14c3ffbbc27fc94b56c446ae215ff561593b62c7 (diff)
downloadgenenetwork2-4eb4beafd2643bc4ae47bd034024efa97103d314.tar.gz
Add BXD_GROUP_EXCEPTIONS to webqtlConfig.py instead of having the groups hardcoded into show_trait.build_correlation_tools (+ add BXD-Heart-Metals to that list)
I'm not sure why this logic exists, so it might be removed entirely later. I'm asking Rob
-rw-r--r--wqflask/base/webqtlConfig.py3
-rw-r--r--wqflask/wqflask/show_trait/show_trait.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/base/webqtlConfig.py b/wqflask/base/webqtlConfig.py
index 371a94ab..f421a05b 100644
--- a/wqflask/base/webqtlConfig.py
+++ b/wqflask/base/webqtlConfig.py
@@ -33,6 +33,9 @@ MAXLRS = 460.0
# MINIMUM Database public value
PUBLICTHRESH = 0
+# Groups to treat as unique when drawing correlation dropdowns (not sure if this logic even makes sense or is necessary)
+BXD_GROUP_EXCEPTIONS = ['BXD-Longevity', 'BXD-AE', 'BXD-Heart-Metals']
+
# EXTERNAL LINK ADDRESSES
PUBMEDLINK_URL = "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=%s&dopt=Abstract"
UCSC_BLAT = 'http://genome.ucsc.edu/cgi-bin/hgBlat?org=%s&db=%s&type=0&sort=0&output=0&userSeq=%s'
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py
index 02a3365b..3cdd4831 100644
--- a/wqflask/wqflask/show_trait/show_trait.py
+++ b/wqflask/wqflask/show_trait/show_trait.py
@@ -447,7 +447,7 @@ class ShowTrait:
# We're checking a string here!
assert isinstance(this_group, str), "We need a string type thing here"
- if this_group[:3] == 'BXD' and this_group != "BXD-Longevity" and this_group != "BXD-AE":
+ if this_group[:3] == 'BXD' and this_group not in webqtlConfig.BXD_GROUP_EXCEPTIONS:
this_group = 'BXD'
if this_group: