aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2020-10-02 02:36:56 +0300
committerBonfaceKilz2020-10-02 02:36:56 +0300
commita3b9372cc24857ac38a1938bc2a94b2dc96471bb (patch)
tree377be3dd6547069ccede7dfc69f805592d30a963 /wqflask
parent5559aeca7989cfe0b454dff018eada6fb69a73a6 (diff)
downloadgenenetwork2-a3b9372cc24857ac38a1938bc2a94b2dc96471bb.tar.gz
Cast variable properly to avoid type exceptions
* wqflask/wqflask/marker_regression/run_mapping.py: See 94c36c8c.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/run_mapping.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py
index f42d2315..995923a7 100644
--- a/wqflask/wqflask/marker_regression/run_mapping.py
+++ b/wqflask/wqflask/marker_regression/run_mapping.py
@@ -409,8 +409,8 @@ class RunMapping(object):
self.results_for_browser.append(browser_marker)
self.annotations_for_browser.append(annot_marker)
- if marker['chr'] > 0 or marker['chr'] == "X" or marker['chr'] == "X/Y":
- if marker['chr'] > highest_chr or marker['chr'] == "X" or marker['chr'] == "X/Y":
+ if str(marker['chr']) > '0' or str(marker['chr']) == "X" or str(marker['chr']) == "X/Y":
+ if str(marker['chr']) > str(highest_chr) or str(marker['chr']) == "X" or str(marker['chr']) == "X/Y":
highest_chr = marker['chr']
if ('lod_score' in marker.keys()) or ('lrs_value' in marker.keys()):
if 'Mb' in marker.keys():