|
bpp-seq
2.1.0
|
This class implements the Invertebrate Mitochondrial genetic code as describe on the NCBI website: http://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi?mode=t#SG3. More...
#include <Bpp/Seq/GeneticCode/YeastMitochondrialGeneticCode.h>
Inheritance diagram for bpp::YeastMitochondrialGeneticCode:
Collaboration diagram for bpp::YeastMitochondrialGeneticCode:Public Member Functions | |
| YeastMitochondrialGeneticCode (const NucleicAlphabet *alpha) | |
| virtual | ~YeastMitochondrialGeneticCode () |
| int | translate (int state) const throw (Exception) |
| Translate a given state coded as a int from source alphabet to target alphabet. More... | |
| std::string | translate (const std::string &state) const throw (Exception) |
| Translate a given state coded as a string from source alphabet to target alphabet. More... | |
| Sequence * | translate (const Sequence &sequence) const throw (Exception) |
| Translate a whole sequence from source alphabet to target alphabet. More... | |
Methods form the Transliterator interface. | |
| const Alphabet * | getSourceAlphabet () const |
| Get the source alphabet. More... | |
| const Alphabet * | getTargetAlphabet () const |
| Get the target alphabet. More... | |
Specific methods. | |
| bool | areSynonymous (int i, int j) const throw (BadIntException) |
| bool | areSynonymous (const std::string &i, const std::string &j) const throw (BadCharException) |
| std::vector< int > | getSynonymous (int aminoacid) const throw (BadIntException) |
| std::vector< std::string > | getSynonymous (const std::string &aminoacid) const throw (BadCharException) |
| bool | isFourFoldDegenerated (int codon) const |
| Sequence * | getCodingSequence (const Sequence &sequence, bool lookForInitCodon=false, bool includeInitCodon=false) const throw (Exception) |
| Get the subsequence corresponding to the coding part of a given sequence. More... | |
Protected Attributes | |
| const CodonAlphabet * | codonAlphabet_ |
| const ProteicAlphabet * | proteicAlphabet_ |
This class implements the Invertebrate Mitochondrial genetic code as describe on the NCBI website: http://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi?mode=t#SG3.
Definition at line 56 of file YeastMitochondrialGeneticCode.h.
| YeastMitochondrialGeneticCode::YeastMitochondrialGeneticCode | ( | const NucleicAlphabet * | alpha | ) |
Definition at line 50 of file YeastMitochondrialGeneticCode.cpp.
References bpp::GeneticCode::codonAlphabet_, and bpp::GeneticCode::proteicAlphabet_.
|
virtual |
Definition at line 56 of file YeastMitochondrialGeneticCode.cpp.
References bpp::GeneticCode::codonAlphabet_, and bpp::GeneticCode::proteicAlphabet_.
|
inlineinherited |
Definition at line 131 of file GeneticCode.h.
References bpp::GeneticCode::translate(), and bpp::GeneticCode::translate().
Referenced by bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), bpp::CodonSiteTools::numberOfSynonymousDifferences(), and bpp::CodonSiteTools::numberOfSynonymousDifferences().
|
inlineinherited |
Definition at line 135 of file GeneticCode.h.
References bpp::GeneticCode::translate(), and bpp::GeneticCode::translate().
|
inherited |
Get the subsequence corresponding to the coding part of a given sequence.
If lookForInitCodon if set to 'true', the subsequence will start at the first AUG motif, otherwise the subsequence will start at the begining of the sequence. The subsequence ends at the first stop codon (excluded) found, or the end of the sequence.
The sequence may have a nucleotide or codon alphabet. The subsequence has the same alphabet, name and comments of the input sequence. In case of nucleotide sequence and if the lookForInitCodon option is checked, the phase will be determined from the sequence.
| sequence | The sequence to parse. |
| lookForInitCodon | Tell if the AUG codon must be found. |
| includeInitCodon | (if lookForInitCodon is true) tell if the init codon must be included in the subsequence. |
Definition at line 128 of file GeneticCode.cpp.
References bpp::AbstractAlphabet::intToChar(), bpp::AbstractAlphabet::intToChar(), bpp::AbstractAlphabet::intToChar(), bpp::AlphabetTools::isCodonAlphabet(), bpp::AlphabetTools::isNucleicAlphabet(), bpp::SymbolList::size(), and bpp::SequenceTools::subseq().
|
inlinevirtualinherited |
Get the source alphabet.
Implements bpp::Transliterator.
Definition at line 115 of file GeneticCode.h.
References bpp::GeneticCode::codonAlphabet_.
Referenced by bpp::CodonSiteTools::numberOfSynonymousDifferences().
|
inherited |
Definition at line 55 of file GeneticCode.cpp.
|
inherited |
Definition at line 76 of file GeneticCode.cpp.
|
inlinevirtualinherited |
Get the target alphabet.
Implements bpp::Transliterator.
Definition at line 116 of file GeneticCode.h.
References bpp::GeneticCode::proteicAlphabet_.
|
inherited |
| codon | The codon to test. |
Definition at line 97 of file GeneticCode.cpp.
References bpp::GeneticCode::codonAlphabet_, bpp::GeneticCode::codonAlphabet_, bpp::GeneticCode::codonAlphabet_, bpp::GeneticCode::codonAlphabet_, bpp::GeneticCode::translate(), and bpp::GeneticCode::translate().
Referenced by bpp::CodonSiteTools::isFourFoldDegenerated(), and bpp::CodonSiteTools::isFourFoldDegenerated().
|
virtual |
Translate a given state coded as a int from source alphabet to target alphabet.
| state | A state in source alphabet. |
| BadIntException | If the state is not a proper state for source alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implements bpp::GeneticCode.
Definition at line 62 of file YeastMitochondrialGeneticCode.cpp.
|
virtual |
Translate a given state coded as a string from source alphabet to target alphabet.
| state | A state in source alphabet. |
| BadCharException | If the state is not a proper state for source alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implements bpp::GeneticCode.
Definition at line 166 of file YeastMitochondrialGeneticCode.cpp.
|
inlinevirtual |
Translate a whole sequence from source alphabet to target alphabet.
| sequence | A sequence in source alphabet. |
| AlphabetMismatchException | If the sequence alphabet do not match the source alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Reimplemented from bpp::GeneticCode.
Definition at line 66 of file YeastMitochondrialGeneticCode.h.
References bpp::GeneticCode::translate().
|
protectedinherited |
Definition at line 83 of file GeneticCode.h.
Referenced by bpp::EchinodermMitochondrialGeneticCode::EchinodermMitochondrialGeneticCode(), bpp::GeneticCode::getSourceAlphabet(), bpp::InvertebrateMitochondrialGeneticCode::InvertebrateMitochondrialGeneticCode(), bpp::GeneticCode::isFourFoldDegenerated(), bpp::GeneticCode::isFourFoldDegenerated(), bpp::GeneticCode::isFourFoldDegenerated(), bpp::GeneticCode::isFourFoldDegenerated(), bpp::GeneticCode::operator=(), bpp::GeneticCode::operator=(), bpp::StandardGeneticCode::StandardGeneticCode(), bpp::VertebrateMitochondrialGeneticCode::VertebrateMitochondrialGeneticCode(), YeastMitochondrialGeneticCode(), bpp::EchinodermMitochondrialGeneticCode::~EchinodermMitochondrialGeneticCode(), bpp::InvertebrateMitochondrialGeneticCode::~InvertebrateMitochondrialGeneticCode(), bpp::StandardGeneticCode::~StandardGeneticCode(), bpp::VertebrateMitochondrialGeneticCode::~VertebrateMitochondrialGeneticCode(), and ~YeastMitochondrialGeneticCode().
|
protectedinherited |
Definition at line 84 of file GeneticCode.h.
Referenced by bpp::EchinodermMitochondrialGeneticCode::EchinodermMitochondrialGeneticCode(), bpp::GeneticCode::getTargetAlphabet(), bpp::InvertebrateMitochondrialGeneticCode::InvertebrateMitochondrialGeneticCode(), bpp::GeneticCode::operator=(), bpp::GeneticCode::operator=(), bpp::StandardGeneticCode::StandardGeneticCode(), bpp::VertebrateMitochondrialGeneticCode::VertebrateMitochondrialGeneticCode(), YeastMitochondrialGeneticCode(), bpp::EchinodermMitochondrialGeneticCode::~EchinodermMitochondrialGeneticCode(), bpp::InvertebrateMitochondrialGeneticCode::~InvertebrateMitochondrialGeneticCode(), bpp::StandardGeneticCode::~StandardGeneticCode(), bpp::VertebrateMitochondrialGeneticCode::~VertebrateMitochondrialGeneticCode(), and ~YeastMitochondrialGeneticCode().