Open main menu

Biolecture.org β

Minsu Kim/python/Rosalind /problem5

 

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)