diff options
author | zsloan | 2017-04-05 15:37:29 +0000 |
---|---|---|
committer | zsloan | 2017-04-05 15:37:29 +0000 |
commit | 0408cc61181eaeda95bd1f60f76dc5798e315663 (patch) | |
tree | ecf1bfa89b1ab93565ed07947da905142c9776d8 /wqflask/base/trait.py | |
parent | 2b14b0d04387a262f9895ddd87ce465c6835fa8c (diff) | |
download | genenetwork2-0408cc61181eaeda95bd1f60f76dc5798e315663.tar.gz |
- Temporary traits can be created, viewed, and added to collections
- Correct PCA trait data is created but can't be saved yet
- Added inner margins by increasing xDomain and yDomain of probability plot on trait page
- Increased X/Y-axis label font size
- Turned "processes" to 0 on runserver.py for PROD setting, since it doesn't work with threading
- Improved appearance of correlation page table
- Added links to github to index page
- Removed js_data from GEMMA/PLINK mapping results, since it isn't used for those
- Removed "Tissue" from trait page for phenotype traits
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r-- | wqflask/base/trait.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index bf87e879..e22a51e4 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -62,6 +62,11 @@ class GeneralTrait(object): self.strand_probe = None self.symbol = None + self.LRS_score_repr = "N/A" + self.LRS_score_value = 0 + self.LRS_location_repr = "N/A" + self.LRS_location_value = 1000000 + if kw.get('fullname'): name2 = value.split("::") if len(name2) == 2: @@ -72,9 +77,10 @@ class GeneralTrait(object): # Todo: These two lines are necessary most of the time, but perhaps not all of the time # So we could add a simple if statement to short-circuit this if necessary - self = retrieve_trait_info(self, self.dataset, get_qtl_info=get_qtl_info) - if get_sample_info != False: - self = retrieve_sample_data(self, self.dataset) + if self.dataset.type != "Temp": + self = retrieve_trait_info(self, self.dataset, get_qtl_info=get_qtl_info) + if get_sample_info != False: + self = retrieve_sample_data(self, self.dataset) def get_name(self): @@ -315,12 +321,12 @@ def get_sample_data(): # #return jsonable_sample_data -def jsonable(trait, dataset_name): +def jsonable(trait): """Return a dict suitable for using as json Actual turning into json doesn't happen here though""" - dataset = create_dataset(dataset_name) + dataset = create_dataset(dataset_name = trait.dataset.name, dataset_type = trait.dataset.type, group_name = trait.dataset.group.name) if dataset.type == "ProbeSet": return dict(name=trait.name, |