From 4eb4beafd2643bc4ae47bd034024efa97103d314 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 14 Oct 2022 23:35:41 +0000 Subject: 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 --- wqflask/base/webqtlConfig.py | 3 +++ wqflask/wqflask/show_trait/show_trait.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'wqflask') 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: -- cgit v1.2.3