diff options
author | Zachary Sloan | 2014-06-25 20:19:02 +0000 |
---|---|---|
committer | Zachary Sloan | 2014-06-25 20:19:02 +0000 |
commit | df6a70c9a06bc30856a1bc46023bd67e5325f5c9 (patch) | |
tree | c7ed438dbc627043785337c0a81ce7988e16d50c /wqflask/base/data_set.py | |
parent | 33cf7a7dafc0bf338f98eb793ffd87d4442a58fd (diff) | |
download | genenetwork2-df6a70c9a06bc30856a1bc46023bd67e5325f5c9.tar.gz |
Added Karl's correlation matrix code
Improved the "scatterplot matrix" feature on the trait page so that
it matches the chosen trait against every selected trait
Diffstat (limited to 'wqflask/base/data_set.py')
-rwxr-xr-x | wqflask/base/data_set.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index a2b13748..843862aa 100755 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -164,6 +164,7 @@ class Markers(object): marker['chr'] = int(marker['chr']) else: marker['chr'] = 19 + print("Mb:", marker['Mb']) marker['Mb'] = float(marker['Mb']) self.markers = markers @@ -670,6 +671,7 @@ class PhenotypeDataSet(DataSet): def get_trait_info(self, trait_list, species = ''): for this_trait in trait_list: + if not this_trait.haveinfo: this_trait.retrieve_info(get_qtl_info=True) @@ -679,6 +681,7 @@ class PhenotypeDataSet(DataSet): #phenotype traits, then display the pre-publication description instead #of the post-publication description if this_trait.confidential: + this_trait.description_display = "" continue # for now if not webqtlUtil.hasAccessToConfidentialPhenotypeTrait( @@ -688,7 +691,12 @@ class PhenotypeDataSet(DataSet): description = this_trait.pre_publication_description - this_trait.description_display = description.strip() + if len(description) > 0: + this_trait.description_display = description.strip() + else: + this_trait.description_display = "" + + print("this_trait.description_display is:", this_trait.description_display) if not this_trait.year.isdigit(): this_trait.pubmed_text = "N/A" |