aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-08-24 12:49:10 -0500
committerzsloan2020-08-24 12:49:10 -0500
commit9fa93f37c07e6825a2dd7e820eedfbbe24c6342a (patch)
treec947e36a9eb3181191b95dd80bafd2e15aab0046
parent3d2ef9879305449568962db9be7fa753473ec11e (diff)
downloadgenenetwork2-9fa93f37c07e6825a2dd7e820eedfbbe24c6342a.tar.gz
Fixed issue where im_drawer wasn't being set in drawHaplotypeBand
* wqflask/wqflask/marker_regression/display_mapping_results.py - defined im_drawer in drawHaplotypeBand to fix errror and removed an unused import
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index d4b8a8dd..3943a401 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -44,7 +44,7 @@ from utility import helper_functions
from utility import Plot
from utility.benchmark import Bench
from wqflask.interval_analyst import GeneUtil
-from base.webqtlConfig import TMPDIR, GENERATED_TEXT_DIR, GENERATED_IMAGE_DIR
+from base.webqtlConfig import GENERATED_TEXT_DIR, GENERATED_IMAGE_DIR
from utility.pillow_utils import draw_rotated_text, draw_open_polygon
import utility.logger
@@ -1385,6 +1385,8 @@ class DisplayMappingResults(object):
#Initializing plotRight, error before
plotRight = xRightOffset
+ im_drawer = ImageDraw.Draw(canvas)
+
#### find out PlotRight
for _chr in self.genotype:
if _chr.name == self.ChrList[self.selectedChr][0]: