From 07966b33fca5508c388c29a0f30d539fbc1af9e1 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 13 Jun 2022 21:11:12 +0000 Subject: Check chromosome for 'Un' in search results and print N/A in such cases --- wqflask/wqflask/search_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- cgit v1.2.3