aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorzsloan2020-11-18 14:06:27 -0600
committerzsloan2020-11-18 14:06:27 -0600
commit6ed037083f0b2bac95021e5fb00c0c8877422a47 (patch)
tree9eff57e1efcdd0243a8ded5eecbe2f5deffbaeea /wqflask/base/trait.py
parent518bdbd8f956596e1cee189fe026a71863156fac (diff)
downloadgenenetwork2-6ed037083f0b2bac95021e5fb00c0c8877422a47.tar.gz
Fixed issue where the cofactor trait descriptions didn't work correctly
for genotype/snp cofactors (the code previously only accounted for probeset/phenotype cofactors, so it was treating genotypes/snps like phenotype traits)
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 7763dbe8..0f8f937c 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -274,6 +274,8 @@ def get_sample_data():
if trait_ob.pubmed_id:
trait_dict['pubmed_link'] = trait_ob.pubmed_link
trait_dict['pubmed_text'] = trait_ob.pubmed_text
+ else:
+ trait_dict['location'] = trait_ob.location_repr
return json.dumps([trait_dict, {key: value.value for
key, value in list(