-
Notifications
You must be signed in to change notification settings - Fork 3
/
mrna.py
9 lines (7 loc) · 1.23 KB
/
mrna.py
1
2
3
4
5
6
7
8
9
reverse = {'A':4, 'C':2, 'D':2, 'E':2, 'F':2, 'G':4, 'H':2, 'I':3, 'K':2, 'L':6, 'M':1, 'N':2, 'P':4, 'Q':2, 'R':6, 'S':6, 'T':4, 'V':4, 'W':1, 'Y':2}
p = 'MWDSTPSRIHCPEASRMPTGWDEMVDLHHQHITIRPSTTRFECEICSMTLKQQVHSNVEQWPKFCSANNTQHGIPGMQEYFAINCNYDEFTMYYCAYPHSRARWRGVILLYQLSHMSQFEDIHGFHQMAKPDHNDCIFTHSTSQFAHEQVFQRLVQIKNNYTEQSNSFCPENHPDWAVMKTYRCKAHICYIVFGVTQSEFSPIMERNNVYCYIWFRWTPFMNCKQRLLAPGWKNHVAQYAGEKIYNYSQLNDADLICWRKAREDWQMYLQGMFENRTGPQCWYWHPEYPGWYIDLPWDWGHFYWVDHVSEYDYYELCQAGNNMHEHDMFREFCVYDTATKMSYLSADDAEMSNELAMTKTNQMSQVHSQCHPVTAECTWQVMLWTLMIKSPDCMYKEGTWSTAHWTCFQMCWAWPCEASRHTLMITYHGVFHLAYAIRYQHKLKECEAQKSCQLDKKQNMIVDDQIRGQDEPIASQYNEETQVNQMNNFKWQHWAMVTKAGWSNDGFWQHFHCKNSWGMKPEKNSAYWPMLYYDACVTYPNTIKSGGYTWPTCWSLQLNSEDNYHRCARYPRWNNCKDQLISNHVLPMCNAHCCEETILMTHGTWRDHFMNYMQVLNQGGWMEWYFAMDSFETDCPKFSEGTIFYSWQWKPTFMMFWGVDFFLMAMRIHYMLIYDPQQNGFRCEYVEYLRRFTQYKRASKIKFKKLCHDRYTPSWDNSKPAIAKNGLHCSNELSFNAPPERYHHSYMEDTWDTCSCIESNFYFLVLSEVWCYFFYYCAYGAIPSRKMFIQVFYFHFMRVMPSADMDIRYSFECIQASIPDFKRAKYWDDKLCVGCGFGFTGDLNNCQYSYIYL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