aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-11-17 18:27:56 +0000
committerzsloan2021-11-17 21:57:43 +0000
commit3325440faef1161da90d51444543d8d847fb9cdd (patch)
tree39a077e5f8d6839a7bee13f98a530dc8e1ad3314
parent1387badb0d93215152d60e554a3820e39073cb6f (diff)
downloadgenenetwork2-3325440faef1161da90d51444543d8d847fb9cdd.tar.gz
Fix issue where gene global search throws an error due to some traits not having a gene symbol (not sure why they don't in the DB, but the code defaults it to N/A now)
-rw-r--r--wqflask/wqflask/gsearch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py
index bf44408e..31f3305c 100644
--- a/wqflask/wqflask/gsearch.py
+++ b/wqflask/wqflask/gsearch.py
@@ -89,7 +89,7 @@ class GSearch:
if line[7]:
this_trait['description'] = line[7].decode(
'utf-8', 'replace')
- this_trait['location_repr'] = 'N/A'
+ this_trait['location_repr'] = "N/A"
if (line[8] != "NULL" and line[8] != "") and (line[9] != 0):
this_trait['location_repr'] = 'Chr%s: %.6f' % (
line[8], float(line[9]))