Package org.biojava.bio.symbol
Class SimpleCodonPref
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.symbol.SimpleCodonPref
- All Implemented Interfaces:
CodonPref,Changeable
a simple no-frills implementation of the
CodonPref object that encapsulates
codon preference data.
- Since:
- 1.3
- Author:
- David Huen, gwaldon pyrrolysine
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleCodonPref(String geneticCodeName, Distribution codonPref, String name) -
Method Summary
Modifier and TypeMethodDescriptionreturns a Distribution giving the frequency of codons (sums to one over the totality of codons).getFrequencyForSynonyms(Symbol residue) returns a Distribution giving the frequency of synonymous codons.the genetic code that this codon preference is based on.get the name of the genetic codegetName()get name of objectgetWobbleDistributionForSynonyms(Symbol residue) returns a WobbleDistribution for a specified residue.Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
Constructor Details
-
SimpleCodonPref
public SimpleCodonPref(String geneticCodeName, Distribution codonPref, String name) throws IllegalAlphabetException - Throws:
IllegalAlphabetException
-
-
Method Details
-
getName
Description copied from interface:CodonPrefget name of object -
getGeneticCodeName
Description copied from interface:CodonPrefget the name of the genetic code- Specified by:
getGeneticCodeNamein interfaceCodonPref
-
getGeneticCode
Description copied from interface:CodonPrefthe genetic code that this codon preference is based on.- Specified by:
getGeneticCodein interfaceCodonPref
-
getFrequency
Description copied from interface:CodonPrefreturns a Distribution giving the frequency of codons (sums to one over the totality of codons).- Specified by:
getFrequencyin interfaceCodonPref
-
getFrequencyForSynonyms
Description copied from interface:CodonPrefreturns a Distribution giving the frequency of synonymous codons. (sums to one over the total number of codons that encode that residue).- Specified by:
getFrequencyForSynonymsin interfaceCodonPref- Throws:
IllegalSymbolException
-
getWobbleDistributionForSynonyms
public WobbleDistribution getWobbleDistributionForSynonyms(Symbol residue) throws IllegalSymbolException Description copied from interface:CodonPrefreturns a WobbleDistribution for a specified residue.- Specified by:
getWobbleDistributionForSynonymsin interfaceCodonPref- Throws:
IllegalSymbolException
-