aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/marker_regression
diff options
context:
space:
mode:
authorzsloan2024-08-19 19:07:51 +0000
committerzsloan2024-08-19 19:07:51 +0000
commit435d359ac7cf274969afc1c25e3fdd8cb29264d7 (patch)
tree5f3478c8b0a8820d11e3707b12afd7c17fd97ba7 /gn2/wqflask/marker_regression
parentcf61dfb49c8201643840e0b4057d5d9b5cbccb96 (diff)
downloadgenenetwork2-435d359ac7cf274969afc1c25e3fdd8cb29264d7.tar.gz
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)
Diffstat (limited to 'gn2/wqflask/marker_regression')
-rw-r--r--gn2/wqflask/marker_regression/display_mapping_results.py5
1 files changed, 3 insertions, 2 deletions
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