Class IUPACParser.IUPACTable
java.lang.Object
org.biojava.nbio.core.sequence.io.IUPACParser.IUPACTable
- All Implemented Interfaces:
 Table
- Enclosing class:
 - IUPACParser
 
Holds the concept of a codon table from the IUPAC format
- Author:
 - Andy Yates
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.nbio.core.sequence.transcription.Table
Table.CaseInsensitiveTriplet, Table.Codon - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetCodonCompoundSet(CompoundSet<NucleotideCompound> rnaCompounds, CompoundSet<AminoAcidCompound> aminoAcidCompounds) Returns the compound set of codonsgetCodons(CompoundSet<NucleotideCompound> nucelotides, CompoundSet<AminoAcidCompound> aminoAcids) Returns a list of codons where the source and target compounds are the same as those given by the parameters.getId()getName()booleanisStart(AminoAcidCompound compound) Returns true if the given compound was a start codon in this codon table. 
- 
Constructor Details
- 
IUPACTable
 - 
IUPACTable
Constructor which uses the basic IUPAC codon table format. Useful if you need to specify your own IUPAC table with minimal definitions from your side. 
 - 
 - 
Method Details
- 
getId
 - 
getName
 - 
isStart
Returns true if the given compound was a start codon in this codon table. This will report true if the compound could ever have been a start codon.- Specified by:
 isStartin interfaceTable- Throws:
 IllegalStateException- Thrown ifgetCodons(CompoundSet, CompoundSet)was not called first.
 - 
getCodons
public List<Table.Codon> getCodons(CompoundSet<NucleotideCompound> nucelotides, CompoundSet<AminoAcidCompound> aminoAcids) Returns a list of codons where the source and target compounds are the same as those given by the parameters. - 
getCodonCompoundSet
public CompoundSet<Table.Codon> getCodonCompoundSet(CompoundSet<NucleotideCompound> rnaCompounds, CompoundSet<AminoAcidCompound> aminoAcidCompounds) Returns the compound set of codons- Specified by:
 getCodonCompoundSetin interfaceTable
 
 -