diff options
author | BonfaceKilz | 2020-10-20 23:12:25 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-10-20 23:12:25 +0300 |
commit | b369489e6c075eee3f58bb33e493c901b052b0a1 (patch) | |
tree | 0be11a685ab20eec7c64537bd546f2a84b9d3b24 /wqflask/base | |
parent | b94060ef1fa07cb072593f7085b8cd0be5874dca (diff) | |
parent | 3f7d7e0f996c76f3c03d03970982656b5eb112d7 (diff) | |
download | genenetwork2-b369489e6c075eee3f58bb33e493c901b052b0a1.tar.gz |
Merge branch 'testing' into build/python3-migration
Diffstat (limited to 'wqflask/base')
-rw-r--r-- | wqflask/base/webqtlCaseData.py | 11 |
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 |