if i.seq.startswith('ATG') and 'N' not in i.seq and 'Y' not in i.seq and 'K' not in i.seq and 'R' not in i.seq and 'M' not in i.seq and 'S' not in i.seq and 'W' not in i.seq:
39
for j in range(0, len(str(i.seq)), 3):
40
codon = str(i.seq)[j:j+3]
41
if codon in CodonsDict.keys():
42
CodonsDict[codon] +=1
43
count_file.writelines('%st' % i.id)
44
fre_file.writelines('%st' % i.id)
45
total = sum([CodonsDict[key] for key in CodonsDict.keys()])