diff options
author | zsloan | 2022-06-13 21:11:12 +0000 |
---|---|---|
committer | zsloan | 2022-06-13 21:11:12 +0000 |
commit | 07966b33fca5508c388c29a0f30d539fbc1af9e1 (patch) | |
tree | cf55522aceb31308ee7b538e3ab577299bd7b1c8 /wqflask | |
parent | 462912cce1469d23c9f4f585b83a325e7be9a3ff (diff) | |
download | genenetwork2-07966b33fca5508c388c29a0f30d539fbc1af9e1.tar.gz |
Check chromosome for 'Un' in search results and print N/A in such cases
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/search_results.py | 2 |
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}" |