aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2019-11-21 16:01:25 -0600
committerzsloan2019-11-21 16:01:25 -0600
commit6b51da8fa10d1c1b05d85daf6f3cac7b2a8db29f (patch)
treed7f8e3ae24f3b1ec8b91a592fda207d29ce2786c /wqflask/base
parent0d780f0dc257e3bdf11faffefdda255b467bfdbe (diff)
downloadgenenetwork2-6b51da8fa10d1c1b05d85daf6f3cac7b2a8db29f.tar.gz
Use updated phenotype display IDs for all phenotypes with codes now, not just unpublished ones
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/trait.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 5fae34cf..37603873 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -431,6 +431,9 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
trait.display_name = trait.name
if dataset.type == 'Publish':
+ if trait.group_code:
+ trait.display_name = trait.group_code + "_" + str(trait.name)
+
trait.confidential = 0
if trait.pre_publication_description and not trait.pubmed_id:
trait.confidential = 1
@@ -464,9 +467,6 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
if trait.pubmed_id:
trait.pubmed_link = webqtlConfig.PUBMEDLINK_URL % trait.pubmed_id
- else:
- if trait.group_code:
- trait.display_name = trait.group_code + "_" + str(trait.name)
if dataset.type == 'ProbeSet' and dataset.group:
description_string = unicode(str(trait.description).strip(codecs.BOM_UTF8), 'utf-8')