diff options
author | GN2 | 2020-04-24 16:09:10 -0500 |
---|---|---|
committer | GN2 | 2020-04-24 16:09:10 -0500 |
commit | 789252703c00bcbdd98dd5088d0e4651e750a24a (patch) | |
tree | f3ed2c01e2ecffc56c924e26f45f0128f26e200b /wqflask/base/trait.py | |
parent | c5c9f0e793ca729aa14dc38b7e8de1cb713ed730 (diff) | |
parent | d56ae51d72335c10e5f08c22a4e0cba1ab3547cb (diff) | |
download | genenetwork2-789252703c00bcbdd98dd5088d0e4651e750a24a.tar.gz |
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into HEAD
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r-- | wqflask/base/trait.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 5525472e..e454c593 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -14,6 +14,7 @@ from base.data_set import create_dataset from db import webqtlDatabaseFunction from utility import webqtlUtil from utility import hmac +from utility.tools import GN2_BASE_URL from wqflask import app @@ -135,9 +136,9 @@ class GeneralTrait(object): alias = 'Not available' if self.symbol: - human_response = requests.get("http://gn2.genenetwork.org/gn3/gene/aliases/" + self.symbol.upper()) - mouse_response = requests.get("http://gn2.genenetwork.org/gn3/gene/aliases/" + self.symbol.capitalize()) - other_response = requests.get("http://gn2.genenetwork.org/gn3/gene/aliases/" + self.symbol.lower()) + human_response = requests.get(GN2_BASE_URL + "gn3/gene/aliases/" + self.symbol.upper()) + mouse_response = requests.get(GN2_BASE_URL + "gn3/gene/aliases/" + self.symbol.capitalize()) + other_response = requests.get(GN2_BASE_URL + "gn3/gene/aliases/" + self.symbol.lower()) if human_response and mouse_response and other_response: alias_list = json.loads(human_response.content) + json.loads(mouse_response.content) + json.loads(other_response.content) |