From 70e66491d0fa84ba3c0ab6748061f3dd69d710be Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 5 Nov 2018 17:56:11 +0000 Subject: Fixed quantile normalization issue --- wqflask/wqflask/show_trait/show_trait.py | 2 +- 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 #} - -