aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2020-10-20 15:38:40 -0500
committerGitHub2020-10-20 15:38:40 -0500
commitaa56c7ea2ff22e7da337bb4fc695011e28eeabf2 (patch)
tree94323ffb9238e8b6ebe0d1e128c1b13ccbfa53ad /wqflask/base
parentad8e88385b6211266de4729ad310362a0e5c880e (diff)
parent3f7d7e0f996c76f3c03d03970982656b5eb112d7 (diff)
downloadgenenetwork2-aa56c7ea2ff22e7da337bb4fc695011e28eeabf2.tar.gz
Merge branch 'testing' into move_styling_to_css
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