diff options
author | zsloan | 2018-11-05 17:56:11 +0000 |
---|---|---|
committer | zsloan | 2018-11-05 17:56:11 +0000 |
commit | 70e66491d0fa84ba3c0ab6748061f3dd69d710be (patch) | |
tree | ff490487fd0904f0bdc622e9beb196ee59886389 /wqflask | |
parent | abc53a8f47b39db3b7e5246a5cad3fa617a773ec (diff) | |
download | genenetwork2-70e66491d0fa84ba3c0ab6748061f3dd69d710be.tar.gz |
Fixed quantile normalization issue
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/show_trait/show_trait.py | 2 | ||||
-rw-r--r-- | wqflask/wqflask/templates/show_trait_edit_data.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py index 88ff5345..f75302f6 100644 --- a/wqflask/wqflask/show_trait/show_trait.py +++ b/wqflask/wqflask/show_trait/show_trait.py @@ -301,6 +301,7 @@ def quantile_normalize_vals(sample_groups): p_list.append(((i+1) - 0.5)/len(trait_vals)) z = ss.norm.ppf(p_list) + normed_vals = [] for rank in ranked_vals: normed_vals.append("%0.3f" % z[int(rank)-1]) @@ -317,7 +318,6 @@ def quantile_normalize_vals(sample_groups): continue qnorm_vals = normf(trait_vals) - qnorm_vals_with_x = [] counter = 0 for sample in sample_type.sample_list: diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html index 16878a8f..bd40946d 100644 --- a/wqflask/wqflask/templates/show_trait_edit_data.html +++ b/wqflask/wqflask/templates/show_trait_edit_data.html @@ -125,7 +125,7 @@ {# Todo: Add IDs #} <td class="column_name-Value" align="right"> - <input type="text" data-value="{{ sample.display_value }}" data-qnorm="{{ qnorm_vals[outer_loop.index - 1][0][loop.index - 1] }}" name="{{ 'value:' + sample.name }}" + <input type="text" data-value="{{ sample.display_value }}" data-qnorm="{{ qnorm_vals[outer_loop.index - 1][loop.index - 1] }}" name="{{ 'value:' + sample.name }}" style="text-align:right;" class="trait_value_input edit_sample_value" value="{{ sample.display_value }}" @@ -140,7 +140,7 @@ {# Todo: Add IDs #} <td class="column_name-SE" align="right"> - <input type="text" data-value="{{ sample.display_variance }}" data-qnorm="{{ qnorm_vals[outer_loop.index - 1][1][loop.index - 1] }}" name="{{ 'variance:' + sample.name}}" + <input type="text" data-value="{{ sample.display_variance }}" data-qnorm="x" name="{{ 'variance:' + sample.name}}" style="text-align:right;" class="trait_value_input edit_sample_se" value="{{ sample.display_variance }}" |