-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodonToProtein.py
More file actions
69 lines (47 loc) · 1.61 KB
/
codonToProtein.py
File metadata and controls
69 lines (47 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from invertFunction import *
codon_mapping = {
# Phenylalanine (Phe)
'UUU': 'Phe', 'UUC': 'Phe',
# Leucine (Leu)
'UUA': 'Leu', 'UUG': 'Leu', 'CUU': 'Leu', 'CUC': 'Leu', 'CUA': 'Leu', 'CUG': 'Leu',
# Isoleucine (Ile)
'AUU': 'Ile', 'AUC': 'Ile', 'AUA': 'Ile',
# Methionine (Met) - Start Codon
'AUG': 'Met',
# Valine (Val)
'GUU': 'Val', 'GUC': 'Val', 'GUA': 'Val', 'GUG': 'Val',
# Serine (Ser)
'UCU': 'Ser', 'UCC': 'Ser', 'UCA': 'Ser', 'UCG': 'Ser', 'AGU': 'Ser', 'AGC': 'Ser',
# Proline (Pro)
'CCU': 'Pro', 'CCC': 'Pro', 'CCA': 'Pro', 'CCG': 'Pro',
# Threonine (Thr)
'ACU': 'Thr', 'ACC': 'Thr', 'ACA': 'Thr', 'ACG': 'Thr',
# Alanine (Ala)
'GCU': 'Ala', 'GCC': 'Ala', 'GCA': 'Ala', 'GCG': 'Ala',
# Tyrosine (Tyr)
'UAU': 'Tyr', 'UAC': 'Tyr',
# Stop Codons
'UAA': 'Stop', 'UAG': 'Stop', 'UGA': 'Stop',
# Histidine (His)
'CAU': 'His', 'CAC': 'His',
# Glutamine (Gln)
'CAA': 'Gln', 'CAG': 'Gln',
# Asparagine (Asn)
'AAU': 'Asn', 'AAC': 'Asn',
# Lysine (Lys)
'AAA': 'Lys', 'AAG': 'Lys',
# Aspartic Acid (Asp)
'GAU': 'Asp', 'GAC': 'Asp',
# Glutamic Acid (Glu)
'GAA': 'Glu', 'GAG': 'Glu',
# Cysteine (Cys)
'UGU': 'Cys', 'UGC': 'Cys',
# Tryptophan (Trp)
'UGG': 'Trp',
# Arginine (Arg)
'CGU': 'Arg', 'CGC': 'Arg', 'CGA': 'Arg', 'CGG': 'Arg', 'AGA': 'Arg', 'AGG': 'Arg',
# Glycine (Gly)
'GGU': 'Gly', 'GGC': 'Gly', 'GGA': 'Gly', 'GGG': 'Gly'
}
def CtoP():
specialInvert(codon_mapping)