aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/webqtlCaseData.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/webqtlCaseData.py')
-rwxr-xr-xwqflask/base/webqtlCaseData.py26
1 files changed, 9 insertions, 17 deletions
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 = ""
@@ -49,6 +50,14 @@ class webqtlCaseData(object):
return str
@property
+ def class_outlier(self):
+ """Template helper"""
+ if self.outlier:
+ return "outlier"
+ else:
+ return ""
+
+ @property
def display_value(self):
if self.value:
return "%2.3f" % 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