aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorPjotr Prins2015-03-09 13:51:13 +0300
committerPjotr Prins2015-03-09 13:51:13 +0300
commit0919dd489deeb736b08c50d4b7636b6af00d92c8 (patch)
tree4b08501da18c8c90303e6429fdcd2dac14941f87 /wqflask
parentaaf0f336b69fb1fb77c9dd3782ba4db0d732106c (diff)
downloadgenenetwork2-0919dd489deeb736b08c50d4b7636b6af00d92c8.tar.gz
Not using numpy - is part of the caller
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/my_pylmm/pyLMM/plink.py6
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)