1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.utgenome.gwt.utgb.client.bio;
24
25
26
27
28
29
30
31 public enum AminoAcid {
32
33 Ala("A", "Alanine"), Arg("R", "Arginine"), Asn("N", "Asparagine"), Asp("D", "Aspartic acid"), Cys("C", "Cysteine"), Glu("E", "Glutamic acid"), Gln("Q",
34 "Glutamine"), Gly("G", "Glycine"), His("H", "Histidine"), Ile("I", "Isoleucine"), Leu("L", "Leucine"), Lys("K", "Lysine"), Phe("F",
35 "Phenylanlanine"), Pro("P", "Proline"), Ser("S", "Serine"), Thr("T", "Theronine"), Trp("W", "Tryptophan"), Tyr("Y", "Tyrosine"), Val("V", "Valine"),
36
37
38 Met("M", "Methionine"),
39
40
41 Sec("U", "Selenocysteine"), Pyl("O", "Pyrrolysine"),
42
43
44 Asx("B", "Asparagine or aspartic acid"), Glx("Z", "Glutamine or glutamic acid"), Xle("J", "Leucine or Isoleucine"), Xaa("X",
45 "Unspecified or unknown amino acid"),
46
47
48 Ochre("-", "Stop codon: Ochre"), Opal("-", "Stop codon: Opal"), Amber("-", "Stop codon: Amber"),
49
50
51 NA("N/A", "not available");
52
53 public final String symbol;
54 public final String fullName;
55
56 private AminoAcid(String symbol, String fullName) {
57 this.symbol = symbol;
58 this.fullName = fullName;
59 }
60
61 public boolean isStopCodon() {
62 return this == Ochre || this == Opal || this == Amber;
63 }
64 }