aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-07-01 18:41:45 +0000
committerzsloan2021-07-01 18:41:45 +0000
commitbab4e72f657eef01934dc7a1645dce6d3035c3fd (patch)
treee7d56955ccc53e3ee9b57fc715eca44b706c62ca /wqflask
parentd6937e74b85a4fc44153530520774836eed60fe6 (diff)
downloadgenenetwork2-bab4e72f657eef01934dc7a1645dce6d3035c3fd.tar.gz
Fixed bug where there'd be an error if the max boot count is 0 for a chromosome
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index ec17d3b0..2d74ea52 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -861,6 +861,9 @@ class DisplayMappingResults:
(item[1], yZero - item[2] * bootHeightThresh / maxBootCount)),
fill=self.BOOTSTRAP_BOX_COLOR, outline=BLACK)
+ if maxBootCount == 0:
+ return
+
# draw boot scale
highestPercent = (maxBootCount * 100.0) / nboot
bootScale = Plot.detScale(0, highestPercent)