diff options
author | Pjotr Prins | 2015-03-12 17:18:38 +0300 |
---|---|---|
committer | Pjotr Prins | 2015-03-12 17:18:38 +0300 |
commit | 494edec995a38279eb1da21d520b2cb249eb1079 (patch) | |
tree | 504343a5af7e3a905f3aad49d88461a53793ead9 | |
parent | bd8e4f30cd1eb0a41399d8d94b516845da3c32a0 (diff) | |
download | genenetwork2-494edec995a38279eb1da21d520b2cb249eb1079.tar.gz |
weird fix for lmm result - Python weirdness
-rw-r--r-- | wqflask/wqflask/my_pylmm/pyLMM/runlmm.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py b/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py index 0b727383..e64ca0e6 100644 --- a/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py +++ b/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py @@ -102,6 +102,12 @@ def normalizeGenotype(G): G = (G - m) / s # Normalize the deviation return G +gn = [] +for snp in g: + gn.append( normalizeGenotype(snp) ) + +gn = g + print("Before",g) gT = g.T |