diff options
author | zsloan | 2021-12-03 19:06:49 +0000 |
---|---|---|
committer | zsloan | 2021-12-03 14:16:03 -0600 |
commit | 5d3119d48462f6da4f06c92f6132c516db7fdfd6 (patch) | |
tree | 616aeb0228da6babebcc5d3ef0777cd23afead37 | |
parent | 9354627c0abf78f2aa4069a59df574ac6419e315 (diff) | |
download | genenetwork2-5d3119d48462f6da4f06c92f6132c516db7fdfd6.tar.gz |
Prevent points prior to the X axis from being displayed in mapping figure when zoomed into a sub-range on a chromosome
-rw-r--r-- | wqflask/wqflask/marker_regression/display_mapping_results.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |