From be095620bc8126026514fdee43e06a9a9f443f97 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Wed, 29 Aug 2012 17:49:43 -0500 Subject: Fixed so that outliers are now correctly highlighted --- wqflask/base/webqtlCaseData.py | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'wqflask/base') diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py index 7805df06..25665c55 100755 --- a/wqflask/base/webqtlCaseData.py +++ b/wqflask/base/webqtlCaseData.py @@ -37,6 +37,7 @@ class webqtlCaseData(object): self.variance = variance # Trait Variance self.num_cases = num_cases # Number of individuals/cases self.this_id = None # Set a sane default (can't be just "id" cause that's a reserved word) + self.outlier = None # Not set to True/False until later def __repr__(self): str = "" @@ -48,6 +49,14 @@ class webqtlCaseData(object): str += " ndata=%d" % self.num_cases return str + @property + def class_outlier(self): + """Template helper""" + if self.outlier: + return "outlier" + else: + return "" + @property def display_value(self): if self.value: @@ -63,20 +72,3 @@ class webqtlCaseData(object): return "x" - #try: - # traitVar = thisvar - # dispVar = "%2.3f" % thisvar - #except: - # traitVar = '' - # dispVar = 'x' - - #try: - # traitVal = thisval - # dispVal = "%2.3f" % thisval - #except: - # traitVal = '' - # dispVal = 'x' - - - #def this_val_full(self): - # strain_name = \ No newline at end of file -- cgit v1.2.3