From f92657b08cb2dab8b24c69dee525f52c125713a3 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 9 Mar 2015 15:34:16 +0300 Subject: Write genotype file (start) --- wqflask/wqflask/my_pylmm/pyLMM/convertlmm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/my_pylmm/pyLMM/convertlmm.py b/wqflask/wqflask/my_pylmm/pyLMM/convertlmm.py index d04f9b94..7376a1d5 100644 --- a/wqflask/wqflask/my_pylmm/pyLMM/convertlmm.py +++ b/wqflask/wqflask/my_pylmm/pyLMM/convertlmm.py @@ -150,8 +150,10 @@ if options.geno: wrln("# Phenotypes = "+str(len(num_snps))) def out(i,x): - # print(i,x) - pass + wr(str(i)+"\t") + for v in x: + wr("\t".join(str(v))) + wr("\n") snps = plink.readbed(options.geno+'.bed',num_inds, out) # for i in range(num_snps): -- cgit v1.2.3