Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 374 Bytes
#!/usr/bin/python
import sys
rna={}
f=open('rna_table.txt','rU')
for line in f:
x=line.split()
codons=x[0::2]
acids=x[1::2]
for x in acids:
try:
rna[x]+=1
except:
rna.update({x:1})
f.close()
f=open("rosalind_mrna.txt","rU")
N=1
S=f.read()
S=S.strip()
for x in S:
N=(N*rna[x]) % 1000000
print (3*N) % 1000000
You can’t perform that action at this time.