aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2019-11-14 12:03:09 -0600
committerzsloan2019-11-14 12:03:09 -0600
commit74e81163fb3c2418b88f6d4fbb99760c63a3fea6 (patch)
treed24136d59bbf2f8f702f0925525c5cc3787ea663 /wqflask/base
parent8c76aa0af0140cc0825f03704500839c01603f23 (diff)
downloadgenenetwork2-74e81163fb3c2418b88f6d4fbb99760c63a3fea6.tar.gz
Changed code to rebuild dataset list each time you view the trait page to avoid having to restart each time a new dataset is added. Will need to keep an eye out for any issues, but doesn't seem to affect speed much
Fixed logic for UniProt link to use UniProtId instead of protein ID
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/data_set.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index d9b7f668..f58367ca 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -119,8 +119,12 @@ Publish or ProbeSet. E.g.
def __call__(self, name):
return self.datasets[name]
+def rebuild_dataset_ob():
+ Dataset_Getter = Dataset_Types()
+ return Dataset_Getter
+
# Do the intensive work at startup one time only
-Dataset_Getter = Dataset_Types()
+Dataset_Getter = rebuild_dataset_ob()
def create_datasets_list():
if USE_REDIS:
@@ -922,7 +926,7 @@ class MrnaAssayDataSet(DataSet):
'blatseq', 'targetseq',
'chipid', 'comments',
'strand_probe', 'strand_gene',
- 'proteinid',
+ 'proteinid', 'uniprotid',
'probe_set_target_region',
'probe_set_specificity',
'probe_set_blat_score',