aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/quantile_normalize.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-19 03:36:24 +0300
committerBonfaceKilz2020-08-19 03:36:24 +0300
commit9d5dff44fb4d07f926659dde0c6205bf12a1ca5b (patch)
tree5918fad09cd036a9bd9f5a79f45a77d2cc120af8 /wqflask/maintenance/quantile_normalize.py
parent606ec8b9b3bbb8b2269ab546ebafa454f1753176 (diff)
downloadgenenetwork2-9d5dff44fb4d07f926659dde0c6205bf12a1ca5b.tar.gz
Rename xrange() to range() and wrap existing range() calls with list
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-xrange>
Diffstat (limited to 'wqflask/maintenance/quantile_normalize.py')
-rw-r--r--wqflask/maintenance/quantile_normalize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/maintenance/quantile_normalize.py b/wqflask/maintenance/quantile_normalize.py
index 34886f44..82b695f4 100644
--- a/wqflask/maintenance/quantile_normalize.py
+++ b/wqflask/maintenance/quantile_normalize.py
@@ -37,7 +37,7 @@ def create_dataframe(input_file):
with open(input_file) as f:
ncols = len(f.readline().split("\t"))
- input_array = np.loadtxt(open(input_file, "rb"), delimiter="\t", skiprows=1, usecols=range(1, ncols))
+ input_array = np.loadtxt(open(input_file, "rb"), delimiter="\t", skiprows=1, usecols=list(range(1, ncols)))
return pd.DataFrame(input_array)
#This function taken from https://github.com/ShawnLYU/Quantile_Normalize