diff options
author | Zachary Sloan | 2012-08-29 17:49:43 -0500 |
---|---|---|
committer | Zachary Sloan | 2012-08-29 17:49:43 -0500 |
commit | be095620bc8126026514fdee43e06a9a9f443f97 (patch) | |
tree | e4b57f292ef3da812b1ec11d1c5f676083a8d853 /wqflask/base | |
parent | 4cc46d84810ca9492e9a38e1a1f88ab36d214791 (diff) | |
download | genenetwork2-be095620bc8126026514fdee43e06a9a9f443f97.tar.gz |
Fixed so that outliers are now correctly highlighted
Diffstat (limited to 'wqflask/base')
-rwxr-xr-x | wqflask/base/webqtlCaseData.py | 26 |
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 |