aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/webqtlCaseData.py
diff options
context:
space:
mode:
authorzsloan2016-12-12 22:17:08 +0000
committerzsloan2016-12-12 22:17:08 +0000
commit3d710be17bedbd6f798cc783ac2f402465c79096 (patch)
treec77d7e905b8ea9286e68f58632bbbe390433d7b2 /wqflask/base/webqtlCaseData.py
parent2b6033c3fba3ee2eba195122018011de9c11479f (diff)
downloadgenenetwork2-3d710be17bedbd6f798cc783ac2f402465c79096.tar.gz
Moved a bunch of functions out of the GeneralTrait class that didn't need to be there and changed the code that calls them accordingly
Improved loadings plot on the correlation matrix page to look like GN1's figure (though it's vector and GN1's was static) Removed some unused code from show_trait.py changed appearance of table headers some, though needs a little more work Updated dataset_menu_structure.json
Diffstat (limited to 'wqflask/base/webqtlCaseData.py')
-rw-r--r--wqflask/base/webqtlCaseData.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py
index 627b2f6c..845a7224 100644
--- a/wqflask/base/webqtlCaseData.py
+++ b/wqflask/base/webqtlCaseData.py
@@ -44,15 +44,15 @@ class webqtlCaseData(object):
def __repr__(self):
str = "<webqtlCaseData> "
- if self.value != None:
+ if self.value:
str += "value=%2.3f" % self.value
- if self.variance != None:
+ if self.variance:
str += " variance=%2.3f" % self.variance
- if self.num_cases != None:
+ if self.num_cases:
str += " ndata=%d" % self.num_cases
- if self.name != None:
+ if self.name:
str += " name=%s" % self.name
- if self.name2 != None:
+ if self.name2:
str += " name2=%s" % self.name2
return str
@@ -66,7 +66,7 @@ class webqtlCaseData(object):
@property
def display_value(self):
- if self.value != None:
+ if self.value:
return "%2.3f" % self.value
else:
return "x"