public class CodonTable extends Object implements TranslationTable
Modifier and Type | Field and Description |
---|---|
static CodonTable |
HUMAN |
static CodonTable |
MOUSE |
static XMLName |
XML_CODON_TABLE |
static XMLName |
XML_NAME_ATT |
static XMLName |
XML_SPECIES_ATT |
Modifier | Constructor and Description |
---|---|
|
CodonTable(NCBITaxon inSpecies) |
protected |
CodonTable(String inRsrcPath) |
|
CodonTable(XMLTag inXMLTag) |
Modifier and Type | Method and Description |
---|---|
CodonTable |
addCodon(Codon inValue) |
boolean |
containsCodonUsageData() |
Codon |
getCodon(String inCodon)
Can be used to retrieve the internal Codon object which can contain the AA mapping and codon usage data.
|
Codon |
getCodonForAA_viaWeightedSelection(char inAA)
Returns a weighted randomly selected codon for the specified amino acid.
|
Codon |
getCodonForAA_viaWeightedSelection(char inAA,
float inMinBias)
Returns a weighted randomly selected codon meeting a specified minimum usage bias
for the specified amino acid.
|
Set<Codon> |
getCodons() |
Set<Codon> |
getCodonsForAA(char inAA) |
String |
name() |
void |
retrieveDataFromKazusa()
Dynamically retrieves codon usage data from the Codon Usage Database
(http://www.kazusa.or.jp/codon/)
|
XMLTag |
toXMLTag() |
char |
translateCodon(Codon inCodon) |
char |
translateCodon(String inCodon)
Converts the specified codon (3 nucleotides) into a character representing
the corresponding amino acid.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStopCodon
public static final XMLName XML_CODON_TABLE
public static final XMLName XML_NAME_ATT
public static final XMLName XML_SPECIES_ATT
public static final CodonTable HUMAN
public static final CodonTable MOUSE
public CodonTable(NCBITaxon inSpecies)
public CodonTable(XMLTag inXMLTag)
protected CodonTable(String inRsrcPath)
public void retrieveDataFromKazusa() throws Exception
Exception
- if the data cannot be retrievedpublic CodonTable addCodon(Codon inValue)
public Codon getCodon(String inCodon)
inCodon
- the string representation of the Codon object to retrievepublic Set<Codon> getCodonsForAA(char inAA)
public Codon getCodonForAA_viaWeightedSelection(char inAA)
inAA
- the amino acid character for which codons should be selectedpublic Codon getCodonForAA_viaWeightedSelection(char inAA, float inMinBias)
inAA
- the amino acid character for which codons should be selectedinMinBias
- the minimum usage bias (frequency) for codons to be consideredpublic char translateCodon(String inCodon)
TranslationTable
translateCodon
in interface TranslationTable
inCodon
- 3-letter nucleotide (DNA or RNA) string to be translatedpublic char translateCodon(Codon inCodon)
public boolean containsCodonUsageData()
jataylor@hairyfatguy.com