From a63528cbae4c9fdb3fffa402fed6cc2fedce02d5 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 27 Oct 2020 17:51:51 -0500 Subject: Get the "first_attr_start_pos" from a samplelist instead of from each individual sample, because it was previously causing problems when only some samples had an N * wqflask/base/webqtlCaseData.py - Removed code getting first_attr_start_pos * wqflask/wqflask/show_trait/SampleList.py - Added code getting first_attr_start_pos and assigning it to all samples + removing one unnecessary sort * wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js - Fixed issue that was causing the N column to not be displayed --- wqflask/base/webqtlCaseData.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'wqflask/base/webqtlCaseData.py') diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py index 3cf2d80d..aa55470f 100644 --- a/wqflask/base/webqtlCaseData.py +++ b/wqflask/base/webqtlCaseData.py @@ -41,8 +41,6 @@ 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 = " " if self.value is not None: @@ -80,13 +78,4 @@ class webqtlCaseData: def display_num_cases(self): 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 + return "x" \ No newline at end of file -- cgit v1.2.3