public enum AminoAcid extends Enum<AminoAcid>
Gly - glycine, 'G' Ala - alanine, 'A' Val - valine, 'V' Leu - leucine, 'L' Ile - isoleucine, 'I' Phe - phenylalanine, 'F' Ser - serine, 'S' Thr - threonine, 'T' Tyr - tyrosine, 'Y' Cys - cysteine, 'C' Sec - selenocysteine, 'U' // 21st amino acid Met - methionine, 'M' Pro - proline, 'P' Lys - lysine, 'K' His - histidine, 'H' Trp - tryptophan, 'W' Arg - arginine, 'R' Asn - asparagine, 'N' Gln - glutamine, 'Q' Pyl - pyrrolysine, 'O' // 22nd amino acid Asp - aspartic acid, 'D' Glu - glutamic acid, 'E' Stop- -, '*'The order of the amino acids is taken from C.E. Mortimer & U. Müller: Chemie. 10th edition, Thieme, Stuttgart 2007.
Enum Constant and Description |
---|
Ala
Alanine
|
Arg
Arginine
|
Asn
Asparagine
|
Asp
Aspartic acid
|
Cys
Cyteine
|
Gln
Glutamine
|
Glu
Glutamic acid
|
Gly
Glycine
|
His
Histidine
|
Ile
Isoleucine
|
Leu
Leucine
|
Lys
Lysine
|
Met
Methionine
|
Phe
Phenylalanine
|
Pro
Proline
|
Pyl
Pyrrolysine. (22nd amino acid)
|
Sec
Selenocysteine. (21st amino acid)
|
Ser
Serine
|
Stop
Stop symbol
|
Thr
Threonine
|
Trp
Tryptophan
|
Tyr
Tyrosine
|
Val
Valine
|
Modifier and Type | Method and Description |
---|---|
static AminoAcid |
decode(char symbol)
Returns the amino acid represented by the specified one-letter symbol.
|
static AminoAcid |
decode(String name)
Returns the amino acid represented by the specified name.
|
String |
getName()
Returns the name of this amino acid.
|
char |
getSymbol()
Returns the one-letter symbol of this amino acid.
|
static AminoAcid |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AminoAcid[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AminoAcid Gly
public static final AminoAcid Ala
public static final AminoAcid Val
public static final AminoAcid Leu
public static final AminoAcid Ile
public static final AminoAcid Phe
public static final AminoAcid Ser
public static final AminoAcid Thr
public static final AminoAcid Tyr
public static final AminoAcid Cys
public static final AminoAcid Sec
public static final AminoAcid Met
public static final AminoAcid Pro
public static final AminoAcid Lys
public static final AminoAcid His
public static final AminoAcid Trp
public static final AminoAcid Arg
public static final AminoAcid Asn
public static final AminoAcid Gln
public static final AminoAcid Pyl
public static final AminoAcid Asp
public static final AminoAcid Glu
public static final AminoAcid Stop
public static AminoAcid[] values()
for (AminoAcid c : AminoAcid.values()) System.out.println(c);
public static AminoAcid 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 String getName()
public char getSymbol()
public static AminoAcid decode(String name)
name
- three-symbol string representing an amino acidIllegalArgumentException
- if the string is not an amino acid namepublic static AminoAcid decode(char symbol)
symbol
- one-letter symbol representing an amino acid.IllegalArgumentException
- if the string does not represent an amino acid