From 494edec995a38279eb1da21d520b2cb249eb1079 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 12 Mar 2015 17:18:38 +0300 Subject: weird fix for lmm result - Python weirdness --- wqflask/wqflask/my_pylmm/pyLMM/runlmm.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wqflask') 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 -- cgit v1.2.3