From 5e2c90b8010721a6eed3d1bb356b43f08a9d07ef Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 7 Apr 2016 20:38:15 +0000 Subject: Added option to change the maximum y-axis value for GN1 mapping figure --- wqflask/wqflask/marker_regression/marker_regression.py | 2 ++ wqflask/wqflask/marker_regression/marker_regression_gn1.py | 7 +++++-- wqflask/wqflask/templates/marker_regression_gn1.html | 8 +++++++- wqflask/wqflask/views.py | 1 + 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/wqflask/wqflask/marker_regression/marker_regression.py b/wqflask/wqflask/marker_regression/marker_regression.py index 26ba212d..af320f65 100644 --- a/wqflask/wqflask/marker_regression/marker_regression.py +++ b/wqflask/wqflask/marker_regression/marker_regression.py @@ -94,6 +94,8 @@ class MarkerRegression(object): self.endMb = start_vars['endMb'] if "graphWidth" in start_vars: self.graphWidth = start_vars['graphWidth'] + if "lrsMax" in start_vars: + self.lrsMax = start_vars['lrsMax'] if "haplotypeAnalystCheck" in start_vars: self.haplotypeAnalystCheck = start_vars['haplotypeAnalystCheck'] if "startMb" in start_vars: #ZS: This is to ensure showGenes, Legend, etc are checked the first time you open the mapping page, since startMb will only not be set during the first load diff --git a/wqflask/wqflask/marker_regression/marker_regression_gn1.py b/wqflask/wqflask/marker_regression/marker_regression_gn1.py index ec4f79aa..63f62411 100644 --- a/wqflask/wqflask/marker_regression/marker_regression_gn1.py +++ b/wqflask/wqflask/marker_regression/marker_regression_gn1.py @@ -296,6 +296,7 @@ class MarkerRegression(object): self.LRS_LOD = start_vars['LRSCheck'] self.cutoff = start_vars['cutoff'] self.intervalAnalystChecked = False + self.draw2X = False if 'additiveCheck' in start_vars.keys(): self.additiveChecked = start_vars['additiveCheck'] else: @@ -312,8 +313,6 @@ class MarkerRegression(object): self.geneChecked = start_vars['showGenes'] else: self.geneChecked = False - self.draw2X = False - self.lrsMax = 0 try: self.startMb = float(start_vars['startMb']) except: @@ -322,6 +321,10 @@ class MarkerRegression(object): self.endMb = float(start_vars['endMb']) except: self.endMb = -1 + try: + self.lrsMax = float(start_vars['lrsMax']) + except: + self.lrsMax = 0 #self.additiveChecked = fd.formdata.getvalue('additiveCheck') #self.dominanceChecked = fd.formdata.getvalue('dominanceCheck') diff --git a/wqflask/wqflask/templates/marker_regression_gn1.html b/wqflask/wqflask/templates/marker_regression_gn1.html index 67f5e010..d7950754 100644 --- a/wqflask/wqflask/templates/marker_regression_gn1.html +++ b/wqflask/wqflask/templates/marker_regression_gn1.html @@ -74,10 +74,16 @@ +