aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/marker_regression
diff options
context:
space:
mode:
authorzsloan2024-08-19 19:27:04 +0000
committerzsloan2024-08-19 19:27:04 +0000
commit4406f1c98f7bc86209b250f2b9c6a40bac214d86 (patch)
tree748d4ff24c1df0ea547f94deeedd2a9197ff9654 /gn2/wqflask/marker_regression
parente92aba86c904c3c6eedd928e945b5199c13e6a0d (diff)
downloadgenenetwork2-4406f1c98f7bc86209b250f2b9c6a40bac214d86.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/marker_regression')
-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: