aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-06-13 21:11:12 +0000
committerzsloan2022-06-13 21:11:12 +0000
commit07966b33fca5508c388c29a0f30d539fbc1af9e1 (patch)
treecf55522aceb31308ee7b538e3ab577299bd7b1c8
parent462912cce1469d23c9f4f585b83a325e7be9a3ff (diff)
downloadgenenetwork2-07966b33fca5508c388c29a0f30d539fbc1af9e1.tar.gz
Check chromosome for 'Un' in search results and print N/A in such cases
-rw-r--r--wqflask/wqflask/search_results.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index 52303c91..a82390cb 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -130,7 +130,7 @@ class SearchResultPage:
trait_dict['description'] = description_display
trait_dict['location'] = "N/A"
- if (result[6] is not None) and (result[6] != "") and (result[7] is not None) and (result[7] != 0):
+ if (result[6] is not None) and (result[6] != "") and (result[6] != "Un") and (result[7] is not None) and (result[7] != 0):
trait_dict['location'] = f"Chr{result[6]}: {float(result[7]):.6f}"
trait_dict['mean'] = "N/A" if result[8] is None or result[8] == "" else f"{result[8]:.3f}"