From 850844cd69db321553d52c91bc81b2433b72d824 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 31 Mar 2022 16:07:15 +0000 Subject: Add another check for >1 markers on a chromosome for interval mapping There were two places this needed to be checked and I previously missed this one --- wqflask/wqflask/marker_regression/display_mapping_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index 034c352b..2c7bba46 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -2470,7 +2470,7 @@ class DisplayMappingResults: m = 0 thisLRSColor = self.colorCollection[0] if qtlresult['chr'] != previous_chr and self.selectedChr == -1: - if self.manhattan_plot != True: + if self.manhattan_plot != True and len(LRSCoordXY) > 1: draw_open_polygon(canvas, xy=LRSCoordXY, outline=thisLRSColor, width=lrsEdgeWidth) -- cgit v1.2.3