diff options
author | zsloan | 2021-07-01 18:41:45 +0000 |
---|---|---|
committer | zsloan | 2021-07-01 18:41:45 +0000 |
commit | bab4e72f657eef01934dc7a1645dce6d3035c3fd (patch) | |
tree | e7d56955ccc53e3ee9b57fc715eca44b706c62ca | |
parent | d6937e74b85a4fc44153530520774836eed60fe6 (diff) | |
download | genenetwork2-bab4e72f657eef01934dc7a1645dce6d3035c3fd.tar.gz |
Fixed bug where there'd be an error if the max boot count is 0 for a chromosome
-rw-r--r-- | wqflask/wqflask/marker_regression/display_mapping_results.py | 3 |
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) |