aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2020-10-19 13:48:34 -0500
committerGitHub2020-10-19 13:48:34 -0500
commit3f7d7e0f996c76f3c03d03970982656b5eb112d7 (patch)
tree5505b932195a454c1ada10677f0e76faba6b588f /wqflask/base
parent3f242af74af814d9344e1e80c5f94914c6d9b621 (diff)
parent8eaae7296e2d66726975ddba0de8aecae256e63b (diff)
downloadgenenetwork2-3f7d7e0f996c76f3c03d03970982656b5eb112d7.tar.gz
Merge pull request #442 from zsloan/scroller_testing
Added scroller to trait page and changed sample tables to use it
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/webqtlCaseData.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py
index 2844cedd..3cf2d80d 100644
--- a/wqflask/base/webqtlCaseData.py
+++ b/wqflask/base/webqtlCaseData.py
@@ -41,6 +41,8 @@ class webqtlCaseData:
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
+ self.first_attr_col = self.get_first_attr_col()
+
def __repr__(self):
case_data_string = "<webqtlCaseData> "
if self.value is not None:
@@ -79,3 +81,12 @@ class webqtlCaseData:
if self.num_cases is not None:
return "%s" % self.num_cases
return "x"
+
+ def get_first_attr_col(self):
+ col_num = 4
+ if self.variance is not None:
+ col_num += 2
+ if self.num_cases is not None:
+ col_num += 1
+
+ return col_num \ No newline at end of file