aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/webqtlCaseData.py
diff options
context:
space:
mode:
authorPjotr Prins2018-10-12 08:24:16 +0000
committerPjotr Prins2018-10-12 08:24:16 +0000
commit5162d1484f01a51d65e7e70143146f018d96edb4 (patch)
tree0ebcdab6a10a1d112dd5a36512352314219fcc56 /wqflask/base/webqtlCaseData.py
parentdd743c8311b26f6a786c346cf4deed144c6a9b61 (diff)
parent261ba5e41408d212cc3c33df658b6be2431f68ad (diff)
downloadgenenetwork2-5162d1484f01a51d65e7e70143146f018d96edb4.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into gn-testing
Diffstat (limited to 'wqflask/base/webqtlCaseData.py')
-rw-r--r--wqflask/base/webqtlCaseData.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py
index 24de8dcb..76f06cc6 100644
--- a/wqflask/base/webqtlCaseData.py
+++ b/wqflask/base/webqtlCaseData.py
@@ -77,3 +77,10 @@ class webqtlCaseData(object):
return "%2.3f" % self.variance
else:
return "x"
+
+ @property
+ def display_num_cases(self):
+ if self.num_cases != None:
+ return "%d" % self.num_cases
+ else:
+ return "x"