aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2017-06-13 16:25:06 +0000
committerzsloan2017-06-13 16:25:06 +0000
commit3d1d8839d38d0552ba110de9ea467b83f72069fd (patch)
tree4a3c6a2a084b0fb9aa5af50cd87f8fe047e4a2b8
parent0ca46f30d6cd222e7ecad9842973bff95e5e29db (diff)
downloadgenenetwork2-3d1d8839d38d0552ba110de9ea467b83f72069fd.tar.gz
Fixed minor issue where the part of the legend describing the LRS/LOD line still appeared for manhattan plots
-rw-r--r--wqflask/wqflask/marker_regression/marker_regression_gn1.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/wqflask/wqflask/marker_regression/marker_regression_gn1.py b/wqflask/wqflask/marker_regression/marker_regression_gn1.py
index d99ac074..74474cb0 100644
--- a/wqflask/wqflask/marker_regression/marker_regression_gn1.py
+++ b/wqflask/wqflask/marker_regression/marker_regression_gn1.py
@@ -1052,7 +1052,10 @@ class MarkerRegression(object):
startPosY = 15
nCol = 2
smallLabelFont = pid.Font(ttf="trebuc", size=12*fontZoom, bold=1)
- leftOffset = xLeftOffset+(nCol-1)*200*fontZoom
+ if self.manhattan_plot:
+ leftOffset = xLeftOffset
+ else:
+ leftOffset = xLeftOffset+(nCol-1)*200*fontZoom
canvas.drawPolygon(((leftOffset+6, startPosY-6), (leftOffset, startPosY+6), (leftOffset+12, startPosY+6)), edgeColor=pid.black, fillColor=self.TRANSCRIPT_LOCATION_COLOR, closed=1)
canvas.drawString("Sequence Site", (leftOffset+15), (startPosY+5), smallLabelFont, self.TOP_RIGHT_INFO_COLOR)
@@ -1143,9 +1146,10 @@ class MarkerRegression(object):
labelFont=pid.Font(ttf="trebuc",size=12*fontZoom, bold=1)
startPosY = 15
stepPosY = 12*fontZoom
- canvas.drawLine(xLeftOffset,startPosY,xLeftOffset+32,startPosY,color=self.LRS_COLOR, width=2)
- canvas.drawString(self.LRS_LOD, xLeftOffset+40,startPosY+5,font=labelFont,color=pid.black)
- startPosY += stepPosY
+ if self.manhattan_plot != True:
+ canvas.drawLine(xLeftOffset,startPosY,xLeftOffset+32,startPosY,color=self.LRS_COLOR, width=2)
+ canvas.drawString(self.LRS_LOD, xLeftOffset+40,startPosY+5,font=labelFont,color=pid.black)
+ startPosY += stepPosY
if self.additiveChecked:
startPosX = xLeftOffset