diff options
author | Alexander Kabui | 2024-08-30 16:47:55 +0300 |
---|---|---|
committer | GitHub | 2024-08-30 16:47:55 +0300 |
commit | ed20621c23a9a41152f3d6a48334f2a31c018033 (patch) | |
tree | 5e2182b99f5f05e2f667dfce1b762921c4ec62dc /gn2/wqflask/marker_regression | |
parent | 9a345d8abf2f0045b2c47bfcf1ae5860273452be (diff) | |
parent | 6db49002d4d2e69fcf4fdd6be6aceeea7b95664f (diff) | |
download | genenetwork2-ed20621c23a9a41152f3d6a48334f2a31c018033.tar.gz |
Merge pull request #861 from genenetwork/feature/gnqa-search-2
Feature/gnqa search 2
Diffstat (limited to 'gn2/wqflask/marker_regression')
-rw-r--r-- | gn2/wqflask/marker_regression/display_mapping_results.py | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/gn2/wqflask/marker_regression/display_mapping_results.py b/gn2/wqflask/marker_regression/display_mapping_results.py index dec414c0..345751ad 100644 --- a/gn2/wqflask/marker_regression/display_mapping_results.py +++ b/gn2/wqflask/marker_regression/display_mapping_results.py @@ -773,8 +773,9 @@ class DisplayMappingResults: pass # draw position, no need to use a separate function - self.drawProbeSetPosition( - canvas, plotXScale, offset=newoffset, zoom=zoom) + if self.traitList[0].mb: # Only draw if position actually exists + self.drawProbeSetPosition( + canvas, plotXScale, offset=newoffset, zoom=zoom) return gifmap @@ -1130,7 +1131,7 @@ class DisplayMappingResults: ) TEXT_Y_DISPLACEMENT = -8 im_drawer.text( - text="Sequence Site", + text="Gene Location", xy=(leftOffset + 20, startPosY + TEXT_Y_DISPLACEMENT), font=smallLabelFont, fill=self.TOP_RIGHT_INFO_COLOR) @@ -1170,20 +1171,20 @@ class DisplayMappingResults: if self.haplotypeAnalystChecked: im_drawer.line( - xy=((startPosX - 34, startPosY), (startPosX - 17, startPosY)), - fill=self.HAPLOTYPE_POSITIVE, width=4) + xy=((startPosX - 60, startPosY), (startPosX - 45, startPosY)), + fill=self.HAPLOTYPE_NEGATIVE, width=8) im_drawer.line( - xy=((startPosX - 17, startPosY), (startPosX, startPosY)), - fill=self.HAPLOTYPE_NEGATIVE, width=4) + xy=((startPosX - 45, startPosY), (startPosX - 30, startPosY)), + fill=self.HAPLOTYPE_POSITIVE, width=8) im_drawer.line( - xy=((startPosX, startPosY), (startPosX + 17, startPosY)), - fill=self.HAPLOTYPE_HETEROZYGOUS, width=4) + xy=((startPosX - 30, startPosY), (startPosX - 15, startPosY)), + fill=self.HAPLOTYPE_HETEROZYGOUS, width=8) im_drawer.line( - xy=((startPosX + 17, startPosY), (startPosX + 34, startPosY)), - fill=self.HAPLOTYPE_RECOMBINATION, width=4) + xy=((startPosX - 15, startPosY), (startPosX, startPosY)), + fill=self.HAPLOTYPE_RECOMBINATION, width=8) im_drawer.text( - text='Haplotypes (Pat, Mat, Het, Unk)', - xy=(startPosX + 41, startPosY + TEXT_Y_DISPLACEMENT), font=labelFont, fill=BLACK) + text='Haplotypes (Mat, Pat, Het, Unknown)', + xy=(startPosX + 10, startPosY + TEXT_Y_DISPLACEMENT), font=labelFont, fill=BLACK) startPosY += stepPosY if self.permChecked and self.nperm > 0: |