Mercurial > repos > bornea > query_crapome
comparison CRAPomeQuery.py @ 13:eb51efc01e35 draft
Uploaded
author | bornea |
---|---|
date | Mon, 25 Apr 2016 11:30:53 -0400 |
parents | 577611df296d |
children | b451afff1aad |
comparison
equal
deleted
inserted
replaced
12:577611df296d | 13:eb51efc01e35 |
---|---|
132 cnt=0 | 132 cnt=0 |
133 temp.append(i[2]) # append accession | 133 temp.append(i[2]) # append accession |
134 temp.append(i[0]) # append gene name | 134 temp.append(i[0]) # append gene name |
135 ave = [] | 135 ave = [] |
136 total = len(i[3:]) # calculate total experiments | 136 total = len(i[3:]) # calculate total experiments |
137 for j in i[3:]: | 137 for j in i[3:]: |
138 print j | |
138 if j != '0': | 139 if j != '0': |
139 ave.append(int(j)) # calculate Ave.SC on only experiments with ID | 140 ave.append(int(j)) # calculate Ave.SC on only experiments with ID |
140 cnt+=1 | 141 cnt+=1 |
141 temp.append(str(cnt) + " / "+str(total)) # format ratio | 142 temp.append(str(cnt) + " / "+str(total)) # format ratio |
142 if ave != []: | 143 if ave != []: |