diff options
author | zsloan | 2020-09-01 14:54:08 -0500 |
---|---|---|
committer | zsloan | 2020-09-01 14:54:08 -0500 |
commit | cd52310d30840ba71343f6e6e2ff00ffb4a874b5 (patch) | |
tree | c02ed6e648e38cac073432892a09185f46ae9dde | |
parent | a43c27d387c896c13402edab5ed3443ccbec8333 (diff) | |
download | genenetwork2-cd52310d30840ba71343f6e6e2ff00ffb4a874b5.tar.gz |
Fixed indent issue that could cause error when showing the haplotype
analyst in the mapping chromosome view
* wqflask/wqflask/marker_regression/display_mapping_results.py -
Indented a bit of code that was wrongly indented in such a way that the
variable "ind" wasn't set if "plotbxd" is 0
-rw-r--r-- | wqflask/wqflask/marker_regression/display_mapping_results.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index a92adb90..79266df2 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -1586,12 +1586,12 @@ class DisplayMappingResults(object): if (plotRight < (xLeftOffset + plotWidth - 3)) and (lastGene == 0): drawEnd = xLeftOffset + plotWidth - 6 mylineColor = self.HAPLOTYPE_RECOMBINATION - im_drawer.line( - xy=((plotRight, - geneYLocation+7+2*ind*self.EACH_GENE_HEIGHT*zoom), - (drawEnd, - geneYLocation+7+2*ind*self.EACH_GENE_HEIGHT*zoom)), - fill= mylineColor, width=zoom*(self.EACH_GENE_HEIGHT+2)) + im_drawer.line( + xy=((plotRight, + geneYLocation+7+2*ind*self.EACH_GENE_HEIGHT*zoom), + (drawEnd, + geneYLocation+7+2*ind*self.EACH_GENE_HEIGHT*zoom)), + fill= mylineColor, width=zoom*(self.EACH_GENE_HEIGHT+2)) if lastGene == 0: |