diff options
author | zsloan | 2020-10-20 14:10:38 -0500 |
---|---|---|
committer | zsloan | 2020-10-20 14:10:38 -0500 |
commit | 3c1e8b1a4892389d4357beac486610eb17717e28 (patch) | |
tree | 3b00032a71bb79a16f79d0f36adab6d8163cf398 /wqflask/base/webqtlCaseData.py | |
parent | 02b7af0c4c44ec7e565e7c4bb66287ed86b432b2 (diff) | |
parent | 3f7d7e0f996c76f3c03d03970982656b5eb112d7 (diff) | |
download | genenetwork2-3c1e8b1a4892389d4357beac486610eb17717e28.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing
Diffstat (limited to 'wqflask/base/webqtlCaseData.py')
-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 |