From 435d359ac7cf274969afc1c25e3fdd8cb29264d7 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 19 Aug 2024 19:07:51 +0000 Subject: Only draw position marker if position exists Previous it was drawing the marker at the end of the map even when mapping with traits that don't have a position (like Publish/phenotype traits) --- gn2/wqflask/marker_regression/display_mapping_results.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gn2/wqflask') diff --git a/gn2/wqflask/marker_regression/display_mapping_results.py b/gn2/wqflask/marker_regression/display_mapping_results.py index dec414c0..74c10a53 100644 --- a/gn2/wqflask/marker_regression/display_mapping_results.py +++ b/gn2/wqflask/marker_regression/display_mapping_results.py @@ -773,8 +773,9 @@ class DisplayMappingResults: pass # draw position, no need to use a separate function - self.drawProbeSetPosition( - canvas, plotXScale, offset=newoffset, zoom=zoom) + if self.traitList[0].mb: # Only draw if position actually exists + self.drawProbeSetPosition( + canvas, plotXScale, offset=newoffset, zoom=zoom) return gifmap -- cgit v1.2.3