comparison CRAPomeQuery.py @ 15:0c0abdfad3b7 draft

Uploaded
author bornea
date Mon, 25 Apr 2016 11:47:05 -0400
parents b451afff1aad
children a5444c834e72
comparison
equal deleted inserted replaced
14:b451afff1aad 15:0c0abdfad3b7
146 temp.append(0) # add 0 if has not been ID'd in CRAPome 146 temp.append(0) # add 0 if has not been ID'd in CRAPome
147 temp.append(0) # add 0 if has not been ID'd in CRAPome 147 temp.append(0) # add 0 if has not been ID'd in CRAPome
148 else: 148 else:
149 temp.append(i[2]) # append accession 149 temp.append(i[2]) # append accession
150 temp.append(i[3]) 150 temp.append(i[3])
151 temp.append("\t") 151 temp.append("NA")
152 temp.append("\t") 152 temp.append("NA")
153 temp.append("\t") 153 temp.append("NA")
154 query.append(temp) # final query results 154 query.append(temp) # final query results
155 155
156 header = ["User Input","Mapped Gene Symbol","Num of Expt. (found/total)","Ave SC","Max SC"] 156 header = ["User Input","Mapped Gene Symbol","Num of Expt. (found/total)","Ave SC","Max SC"]
157 with open("Crappy Data.txt","wt") as x: # write file 157 with open("Crappy Data.txt","wt") as x: # write file
158 x.write("\t".join(header) + "\n") 158 x.write("\t".join(header) + "\n")