aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorzsloan2024-08-19 19:27:04 +0000
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commitd213d255f4d8644eb1e77f3668801788ee3344be (patch)
tree963c59feb3dc444f7c02e2319504cf83addcc698 /gn2/wqflask
parent7aa118e269a1abb5a64d33740e8976bbe0e14793 (diff)
downloadgenenetwork2-d213d255f4d8644eb1e77f3668801788ee3344be.tar.gz
Edit Haplotype Analyst legend content
- Change order from Pat/Mat to Mat/Pat - Increase width of example color bars - Change 'Unk' to 'Unknown' and shift everything to the left so it fits
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/marker_regression/display_mapping_results.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/gn2/wqflask/marker_regression/display_mapping_results.py b/gn2/wqflask/marker_regression/display_mapping_results.py
index 927d68d2..345751ad 100644
--- a/gn2/wqflask/marker_regression/display_mapping_results.py
+++ b/gn2/wqflask/marker_regression/display_mapping_results.py
@@ -1171,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: