|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javagene.seq.AminoAcid
public class AminoAcid
An amino acid object with codon/residue utility methods. Implements the classic 20, plus STOP.
Field Summary | |
---|---|
static AminoAcid |
ALA
|
static AminoAcid |
ARG
|
static AminoAcid |
ASN
|
static AminoAcid |
ASP
|
static AminoAcid |
CYS
|
static AminoAcid |
GLN
|
static AminoAcid |
GLU
|
static AminoAcid |
GLY
|
static AminoAcid |
HIS
|
static AminoAcid |
ILE
|
static AminoAcid |
LEU
|
static AminoAcid |
LYS
|
static AminoAcid |
MET
|
static AminoAcid |
PHE
|
static AminoAcid |
PRO
|
static AminoAcid |
SER
|
static AminoAcid |
STOP
|
static AminoAcid |
THR
|
static AminoAcid |
TRP
|
static AminoAcid |
TYR
|
static AminoAcid |
UNDEFINED
|
static AminoAcid |
VAL
|
Method Summary | |
---|---|
static int |
blosum62(AminoAcid a,
AminoAcid b)
Get BLOSUM62 distance between two AminoAcids. |
boolean |
isSynonym(java.lang.String str)
Check if a three-letter Dna/Rna codon codes for this AminoAcid. |
static AminoAcid |
lookup(java.lang.String str)
Find the AminoAcid object corresponding to a three-letter Dna/Rna codon. |
java.lang.String |
toString()
Get the IUPAC single letter representation of this AminoAcid. |
static java.lang.String |
translate(java.lang.String str)
Translate from IUPAC nucleotide string to IUPAC protein string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AminoAcid ALA
public static final AminoAcid ARG
public static final AminoAcid ASN
public static final AminoAcid ASP
public static final AminoAcid CYS
public static final AminoAcid GLN
public static final AminoAcid GLU
public static final AminoAcid GLY
public static final AminoAcid HIS
public static final AminoAcid ILE
public static final AminoAcid LEU
public static final AminoAcid LYS
public static final AminoAcid MET
public static final AminoAcid PHE
public static final AminoAcid PRO
public static final AminoAcid SER
public static final AminoAcid STOP
public static final AminoAcid THR
public static final AminoAcid TRP
public static final AminoAcid TYR
public static final AminoAcid UNDEFINED
public static final AminoAcid VAL
Method Detail |
---|
public static int blosum62(AminoAcid a, AminoAcid b)
a
- An AminoAcid.b
- Another AminoAcid.
java.lang.IllegalArgumentException
- A parameter specified
either a STOP or UNDEFINED AminoAcid.public boolean isSynonym(java.lang.String str)
str
- A string of exactly three letters representing a codon.
Letters can be upper or lower case.
Both U and T are accepted and considered equivalent.
public static AminoAcid lookup(java.lang.String str)
str
- A string of exactly three letters to look up. Letters can be
upper or lower case. Both U and T are accepted.
java.lang.IllegalArgumentException
- The str parameter was not of length 3.public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String translate(java.lang.String str)
str
- A Dna/Rna string.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |