Closed hmkim closed 9 years ago
Good idea. I've just done the push with the amended version (and README) containing your idea and most of your code. I've only altered the final part for consistency (and my own coding readability preferences).
Thanks for you suggestion!
You're welcome. I'm so happy to contribute this project.
Dear, nicolazzie
Firstly, Thanks for your effort to support this nice pipeline.
When I use this tool, I got the result in success.
My suggestion is to add the option can get the A,T,G,C genotype in PED file.
At present, PED file has A,B,0.
Refer to below.
AlleleA = {} # add line AlleleB = {} # add line
This builds the ps2snp.txt file needed by SNPolisher.
out3=open(HERE+'/ps2snp.txt','w') skip=True probeset=0 if opt.PLINK:allps={} for line in open(Smap): if '"Affy SNP ID' in line: out3.write('probeset_id snpid\n') skip=False;continue if skip:continue line=line.replace('"','') probe,snp,nn,crom,pos,rest=line.strip().split(',',5) if not AlleleA.has_key(probe) : # add line AlleleA[probe] = line.strip().split(',')[11] # add line AlleleB[probe] = line.strip().split(',')[12] # add line if opt.PLINK:allps[probe]=(snp,crom,pos) out3.write('%s %s\n' % (probe,snp)) probeset+=1 out3.close() logit("[GOOD NEWS]: Total probe sets read: "+str(probeset)) ...
-- add lines
-- add lines