public enum Codon extends Enum<Codon>
TTT (Phe), TCT (Ser), TAT (Tyr), TGT (Cys), TTC (Phe), TCC (Ser), TAC (Tyr), TGC (Cys), TTA (Leu), TCA (Ser), TAA (Stop),TGA (Sec), TTG (Leu), TCG (Ser), TAG (Pyl), TGG (Trp), CTT (Leu), CCT (Pro), CAT (His), CGT (Arg), CTC (Leu), CCC (Pro), CAC (His), CGC (Arg), CTA (Leu), CCA (Pro), CAA (Gln), CGA (Arg), CTG (Leu), CCG (Pro), CAG (Gln), CGG (Arg), ATT (Ile), ACT (Thr), AAT (Asn), AGT (Ser), ATC (Ile), ACC (Thr), AAC (Asn), AGC (Ser), ATA (Ile), ACA (Thr), AAA (Lys), AGA (Arg), ATG (Met), ACG (Thr), AAG (Lys), AGG (Arg), GTT (Val), GCT (Ala), GAT (Asp), GGT (Gly), GTC (Val), GCC (Ala), GAC (Asp), GGC (Gly), GTA (Val), GCA (Ala), GAA (Glu), GGA (Gly), GTG (Val, 61), GCG (Ala, 62), GAG (Glu, 63), GGG (Gly, 64), NNN (null, 65);
Enum Constant and Description |
---|
AAA |
AAC |
AAG |
AAT |
ACA |
ACC |
ACG |
ACT |
AGA |
AGC |
AGG |
AGT |
ATA |
ATC |
ATG |
ATT |
CAA |
CAC |
CAG |
CAT |
CCA |
CCC |
CCG |
CCT |
CGA |
CGC |
CGG |
CGT |
CTA |
CTC |
CTG |
CTT |
GAA |
GAC |
GAG |
GAT |
GCA |
GCC |
GCG |
GCT |
GGA |
GGC |
GGG |
GGT |
GTA |
GTC |
GTG |
GTT |
NNN |
TAA |
TAC |
TAG |
TAT |
TCA |
TCC |
TCG |
TCT |
TGA |
TGC |
TGG |
TGT |
TTA |
TTC |
TTG |
TTT
Genetic code according to Mortimer, Müller: Chemie.
|
Modifier and Type | Method and Description |
---|---|
static Codon |
decode(AminoAcid aminoAcid)
Returns the codon which is related to the specified amino acid by the genetic code.
|
AminoAcid |
encode()
Returns the amino acid which is related to this codon by the genetic code.
|
static Codon |
fromBitmaskCode(byte bitmaskCode)
Returns the DNA codon which is represented by the specified bitmask code,
an integer x satisfying 0 ≤ x < 64.
|
static Codon |
fromString(CharSequence triplet)
Returns the DNA codon which is represented by the specified three-letter
string, a triplet, consisting of the DNA letters T, C, A, G.
|
static Codon |
fromTriplet(char x,
char y,
char z)
Returns the DNA codon which is represented by the specified three
nucleobases, a triplet, consisting of the DNA letters T, C, A, G.
|
AminoAcid |
getAminoAcid()
Returns the amino acid which is related to this codon by the genetic code.
|
byte |
getBitmaskCode()
Returns the bitmask code referring to this codon.
|
static void |
main(String... args) |
static Codon |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Codon[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Codon TTT
public static final Codon TCT
public static final Codon TAT
public static final Codon TGT
public static final Codon TTC
public static final Codon TCC
public static final Codon TAC
public static final Codon TGC
public static final Codon TTA
public static final Codon TCA
public static final Codon TAA
public static final Codon TGA
public static final Codon TTG
public static final Codon TCG
public static final Codon TAG
public static final Codon TGG
public static final Codon CTT
public static final Codon CCT
public static final Codon CAT
public static final Codon CGT
public static final Codon CTC
public static final Codon CCC
public static final Codon CAC
public static final Codon CGC
public static final Codon CTA
public static final Codon CCA
public static final Codon CAA
public static final Codon CGA
public static final Codon CTG
public static final Codon CCG
public static final Codon CAG
public static final Codon CGG
public static final Codon ATT
public static final Codon ACT
public static final Codon AAT
public static final Codon AGT
public static final Codon ATC
public static final Codon ACC
public static final Codon AAC
public static final Codon AGC
public static final Codon ATA
public static final Codon ACA
public static final Codon AAA
public static final Codon AGA
public static final Codon ATG
public static final Codon ACG
public static final Codon AAG
public static final Codon AGG
public static final Codon GTT
public static final Codon GCT
public static final Codon GAT
public static final Codon GGT
public static final Codon GTC
public static final Codon GCC
public static final Codon GAC
public static final Codon GGC
public static final Codon GTA
public static final Codon GCA
public static final Codon GAA
public static final Codon GGA
public static final Codon GTG
public static final Codon GCG
public static final Codon GAG
public static final Codon GGG
public static final Codon NNN
public static Codon[] values()
for (Codon c : Codon.values()) System.out.println(c);
public static Codon valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getBitmaskCode()
1 → TTT, 2 → TCT, 3 → TAT, 4 → TGT, 5 → TTC, 6 → TCC, 7 → TAC, 8 → TGC, 9 → TTA, 10 → TCA, 11 → TAA, 12 → TGA, 13 → TTG, 14 → TCG, 15 → TAG, 16 → TGG, 17 → CTT, 18 → CCT, 19 → CAT, 20 → CGT, 21 → CTC, 22 → CCC, 23 → CAC, 24 → CGC, 25 → CTA, 26 → CCA, 27 → CAA, 28 → CGA, 29 → CTG, 30 → CCG, 31 → CAG, 32 → CGG, 33 → ATT, 34 → ACT, 35 → AAT, 36 → AGT, 37 → ATC, 38 → ACC, 39 → AAC, 40 → AGC, 41 → ATA, 42 → ACA, 43 → AAA, 44 → AGA, 45 → ATG, 46 → ACG, 47 → AAG, 48 → AGG, 49 → GTT, 50 → GCT, 51 → GAT, 52 → GGT, 53 → GTC, 54 → GCC, 55 → GAC, 56 → GGC, 57 → GTA, 58 → GCA, 59 → GAA, 60 → GGA, 61 → GTG, 62 → GCG, 63 → GAG, 64 → GGG 65 → NNN (unknown codon)
public AminoAcid getAminoAcid()
public AminoAcid encode()
public static Codon decode(AminoAcid aminoAcid)
aminoAcid
- an amino acidpublic static Codon fromBitmaskCode(byte bitmaskCode)
1 → TTT, 2 → TCT, 3 → TAT, 4 → TGT, 5 → TTC, 6 → TCC, 7 → TAC, 8 → TGC, 9 → TTA, 10 → TCA, 11 → TAA, 12 → TGA, 13 → TTG, 14 → TCG, 15 → TAG, 16 → TGG, 17 → CTT, 18 → CCT, 19 → CAT, 20 → CGT, 21 → CTC, 22 → CCC, 23 → CAC, 24 → CGC, 25 → CTA, 26 → CCA, 27 → CAA, 28 → CGA, 29 → CTG, 30 → CCG, 31 → CAG, 32 → CGG, 33 → ATT, 34 → ACT, 35 → AAT, 36 → AGT, 37 → ATC, 38 → ACC, 39 → AAC, 40 → AGC, 41 → ATA, 42 → ACA, 43 → AAA, 44 → AGA, 45 → ATG, 46 → ACG, 47 → AAG, 48 → AGG, 49 → GTT, 50 → GCT, 51 → GAT, 52 → GGT, 53 → GTC, 54 → GCC, 55 → GAC, 56 → GGC, 57 → GTA, 58 → GCA, 59 → GAA, 60 → GGA, 61 → GTG, 62 → GCG, 63 → GAG, 64 → GGG 65 → NNN (unknown codon)
bitmaskCode
- the bitmask code representing a codon.IllegalArgumentException
- if the string is not a codon tripletpublic static Codon fromTriplet(char x, char y, char z)
x
- the first of the three-letter string representing a codon.y
- the second of the three-letter string representing a codon.z
- the third of the three-letter string representing a codon.IllegalArgumentException
- if the string is not a codon tripletpublic static Codon fromString(CharSequence triplet)
triplet
- three-letter string representing a codon.IllegalArgumentException
- if the string is not a codon tripletpublic static void main(String... args)