diff options
author | zsloan | 2019-11-21 16:01:25 -0600 |
---|---|---|
committer | zsloan | 2019-11-21 16:01:25 -0600 |
commit | 6b51da8fa10d1c1b05d85daf6f3cac7b2a8db29f (patch) | |
tree | d7f8e3ae24f3b1ec8b91a592fda207d29ce2786c | |
parent | 0d780f0dc257e3bdf11faffefdda255b467bfdbe (diff) | |
download | genenetwork2-6b51da8fa10d1c1b05d85daf6f3cac7b2a8db29f.tar.gz |
Use updated phenotype display IDs for all phenotypes with codes now, not just unpublished ones
-rw-r--r-- | wqflask/base/trait.py | 6 |
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') |