diff options
author | zsloan | 2020-11-18 14:06:27 -0600 |
---|---|---|
committer | zsloan | 2020-11-18 14:06:27 -0600 |
commit | 6ed037083f0b2bac95021e5fb00c0c8877422a47 (patch) | |
tree | 9eff57e1efcdd0243a8ded5eecbe2f5deffbaeea /wqflask/base | |
parent | 518bdbd8f956596e1cee189fe026a71863156fac (diff) | |
download | genenetwork2-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')
-rw-r--r-- | wqflask/base/trait.py | 2 |
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( |