aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2020-10-27 17:51:51 -0500
committerzsloan2020-10-27 17:51:51 -0500
commita63528cbae4c9fdb3fffa402fed6cc2fedce02d5 (patch)
tree636e196805118ad89cb2d599fec9827c8b645767 /wqflask/base
parentcc75b6ad2220d9875ce7b21433eb3fb175b5216f (diff)
downloadgenenetwork2-a63528cbae4c9fdb3fffa402fed6cc2fedce02d5.tar.gz
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
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/webqtlCaseData.py13
1 files changed, 1 insertions, 12 deletions
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 = "<webqtlCaseData> "
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