From a4b65450bbd0b682d8fd583f55969a88c4698304 Mon Sep 17 00:00:00 2001 From: Denise D'Auria Date: Mon, 7 Mar 2022 15:54:06 +0100 Subject: [PATCH] Fixed bug in Quantile Normalize An indentatation error was causing wrong results. --- quantile_norm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantile_norm.py b/quantile_norm.py index 9d426f1..e7b2169 100755 --- a/quantile_norm.py +++ b/quantile_norm.py @@ -7,7 +7,7 @@ def quantileNormalize(df_input): dic = {} for col in df: dic.update({col : sorted(df[col])}) - sorted_df = pd.DataFrame(dic) + sorted_df = pd.DataFrame(dic) rank = sorted_df.mean(axis = 1).tolist() #sort for col in df: