Minsu Kim/python/Rosalind /problem5
Revision as of 20:48, 12 December 2017 by imported>Minsukim (Created page with "<p><img alt="" src="/ckfinder/userfiles/images/bandicam%202017-12-12%2020-39-43-636.jpg" style="height:285px; width:1000px" /></p> <p> </p> <p>f = open('rosalind_ba1f....")
f = open('rosalind_ba1f.txt','r')
lines = f.readlines()
seq = lines[0]
f.close()
count_c = 0
count_g = 0
mm = 0
minum = []
for i in seq:
d = c_g-c_c
minum.append(d)
if i == 'C':
count_c += 1
if i == 'G':
count_g += 1
if mm > d:
mm = d
for j in range(0,len(minum)):
if minum[j] == mm:
print(j)