aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/show_trait/show_trait.py2
-rw-r--r--wqflask/wqflask/templates/show_trait_edit_data.html4
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 }}"