aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorzsloan2024-08-19 19:07:51 +0000
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commit3cda2aafa4a626be655083ceb7b892723046856a (patch)
tree202202904f5a454aadcb5ada71710b6bb357e3cf /gn2
parentfc1fbfc999f346fea44c89ef7480ad5159384ebf (diff)
downloadgenenetwork2-3cda2aafa4a626be655083ceb7b892723046856a.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')
-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