From 5d3119d48462f6da4f06c92f6132c516db7fdfd6 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 3 Dec 2021 19:06:49 +0000 Subject: Prevent points prior to the X axis from being displayed in mapping figure when zoomed into a sub-range on a chromosome --- wqflask/wqflask/marker_regression/display_mapping_results.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index 6254b9b9..ead509d7 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -2580,6 +2580,8 @@ class DisplayMappingResults: if self.selectedChr != -1 and qtlresult['Mb'] > endMb: Xc = startPosX + endMb * plotXScale else: + if qtlresult['Mb'] - startMb < 0: + continue Xc = startPosX + (qtlresult['Mb'] - startMb) * plotXScale # updated by NL 06-18-2011: -- cgit v1.2.3