From 0919dd489deeb736b08c50d4b7636b6af00d92c8 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 9 Mar 2015 13:51:13 +0300 Subject: Not using numpy - is part of the caller --- wqflask/wqflask/my_pylmm/pyLMM/plink.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/my_pylmm/pyLMM/plink.py b/wqflask/wqflask/my_pylmm/pyLMM/plink.py index 3e850c9b..75d51c3b 100644 --- a/wqflask/wqflask/my_pylmm/pyLMM/plink.py +++ b/wqflask/wqflask/my_pylmm/pyLMM/plink.py @@ -39,7 +39,7 @@ # 1 mm37-1-3187481 0 3187481 1 2 import struct -import numpy as np +# import numpy as np def readbim(fn): res = [] @@ -73,7 +73,7 @@ def readbed(fn,inds,func=None): '00': 0.0, \ '10': 0.5, \ '11': 1.0, \ - '01': np.nan \ + '01': float('nan') \ } G = [] @@ -85,7 +85,7 @@ def readbed(fn,inds,func=None): L = [D[y] for y in [a,b,c,d]] G += L G = G[:inds] - G = np.array(G) + # G = np.array(G) return G bytes = inds / 4 + (inds % 4 and 1 or 0) -- cgit v1.2.3