aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2023-12-07 20:21:46 +0000
committerzsloan2023-12-07 20:26:39 +0000
commit1da4713c15fffb94765b50d252869c9e60e518aa (patch)
tree0b6cd05ee8f8e1812aedfa4751255f77718b5012 /wqflask
parent43b4c53ebf77b8e5416965ce121ce659b9098463 (diff)
downloadgenenetwork2-1da4713c15fffb94765b50d252869c9e60e518aa.tar.gz
Fix bug when viewing individual chromosomes for non-mouse/rat species
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index e371878b..7d6d3ad4 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -1982,9 +1982,9 @@ class DisplayMappingResults:
i = 0
paddingTop = yTopOffset
+ phenogenPaddingTop = paddingTop + \
+ (self.BAND_HEIGHT + self.BAND_SPACING)
if self.dataset.group.species == "mouse" or self.dataset.group.species == "rat":
- phenogenPaddingTop = paddingTop + \
- (self.BAND_HEIGHT + self.BAND_SPACING)
ucscPaddingTop = paddingTop + 2 * \
(self.BAND_HEIGHT + self.BAND_SPACING)
ensemblPaddingTop = paddingTop + 3 * \
@@ -2133,7 +2133,7 @@ class DisplayMappingResults:
"Chr %s" % self.ChrList[self.selectedChr][0], font=chrFont)[0]
im_drawer.text(
text="Chr %s" % self.ChrList[self.selectedChr][0],
- xy=(chrX, phenogenPaddingTop), font=chrFont, fill=GRAY)
+ xy=(chrX, paddingTop), font=chrFont, fill=GRAY)
# end of drawBrowserClickableRegions
else:
# draw the gray text