Created
January 23, 2019 00:24
-
-
Save gkarthik/1a640fdc0eaf84a16513a14878c8e78e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bases = "tcag" | |
codons = [a + b + c for a in bases for b in bases for c in bases] | |
amino_acids = 'FFLLSSSSYY**CC*WLLLLPPPPHHQQRRRRIIIMTTTTNNKKSSRRVVVVAAAADDEEGGGG' | |
codon_table = dict(zip(codons, amino_acids)) | |
# To get amino acid | |
codon_table['atg'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment