diff options
author | Pjotr Prins | 2015-03-09 13:51:13 +0300 |
---|---|---|
committer | Pjotr Prins | 2015-03-09 13:51:13 +0300 |
commit | 0919dd489deeb736b08c50d4b7636b6af00d92c8 (patch) | |
tree | 4b08501da18c8c90303e6429fdcd2dac14941f87 /wqflask | |
parent | aaf0f336b69fb1fb77c9dd3782ba4db0d732106c (diff) | |
download | genenetwork2-0919dd489deeb736b08c50d4b7636b6af00d92c8.tar.gz |
Not using numpy - is part of the caller
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/my_pylmm/pyLMM/plink.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |