aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorzsloan2019-03-07 17:14:56 -0600
committerzsloan2019-03-07 17:14:56 -0600
commit9769245cf3595273055d686a689cdcecb4b3645a (patch)
treecedc6d91e4c366fee5357d94db248d55e234bbfb /wqflask/base/trait.py
parent44f1f0d9ce426d7241356b6e6b17223854e4f10c (diff)
downloadgenenetwork2-9769245cf3595273055d686a689cdcecb4b3645a.tar.gz
Changed the way covariates are displayed when selected for mapping
Made the outlier notification appear for all mapping methods Removed some misleading text saying "Block samples" from the Transform and Filter Data section
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 9f76306f..79aa196f 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -220,6 +220,7 @@ def jsonable(trait):
dataset=dataset.name,
dataset_name = dataset.shortname,
description=trait.description_display,
+ abbreviation=trait.abbreviation,
authors=trait.authors,
pubmed_text=trait.pubmed_text,
pubmed_link=trait.pubmed_link,
@@ -232,6 +233,7 @@ def jsonable(trait):
dataset=dataset.name,
dataset_name = dataset.shortname,
description=trait.description_display,
+ abbreviation=trait.abbreviation,
authors=trait.authors,
pubmed_text=trait.pubmed_text,
lrs_score=trait.LRS_score_repr,
@@ -397,6 +399,7 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
#phenotype traits, then display the pre-publication description instead
#of the post-publication description
if trait.confidential:
+ trait.abbreviation = trait.pre_publication_abbreviation
trait.description_display = trait.pre_publication_description
#if not webqtlUtil.hasAccessToConfidentialPhenotypeTrait(
@@ -406,6 +409,7 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
#
# description = self.pre_publication_description
else:
+ trait.abbreviation = trait.post_publication_abbreviation
if description:
trait.description_display = description.strip()
else: