Classes | |
| class | Sequence::shortestPath |
| Calculate shortest path between 2 codons. More... | |
Functions | |
| void | Sequence::Intermediates2 (string *intermediates, const std::string &codon1, const std::string &codon2) |
| Calculate the intermediate codons between a pair of codons diverged at 2 positions. | |
| void | Sequence::Intermediates3 (string *intermediates, const std::string &codon1, const std::string &codon2) |
| Calculate the intermediate codons between a pair of codons diverged at 3 positions. | |
| std::pair< unsigned, unsigned > | Sequence::mutsShortestPath (const std::string &codon1, const std::string &codon2, const Sequence::GeneticCodes &code) throw (Sequence::SeqException) |
This group of classes and functions deals with determining either the counts of silent and replacement differences between codons or the intermedate codons that occurs between two different codons
| void Sequence::Intermediates2 | ( | string * | intermediates, | |
| const std::string & | codon1, | |||
| const std::string & | codon2 | |||
| ) |
Calculate the intermediate codons between a pair of codons diverged at 2 positions.
| intermediates | a string[2] in which we will place the intermediate codons | |
| codon1 | a codon | |
| codon2 | a codon |
Definition at line 33 of file PathwayHelper.cc.
| void Sequence::Intermediates3 | ( | string * | intermediates, | |
| const std::string & | codon1, | |||
| const std::string & | codon2 | |||
| ) |
Calculate the intermediate codons between a pair of codons diverged at 3 positions.
| intermediates | a string[9] in which we will place the intermediate codons | |
| codon1 | a codon | |
| codon2 | a codon |
Definition at line 92 of file PathwayHelper.cc.
| std::pair< unsigned, unsigned > Sequence::mutsShortestPath | ( | const std::string & | codon1, | |
| const std::string & | codon2, | |||
| const Sequence::GeneticCodes & | code | |||
| ) | throw (Sequence::SeqException) |
For example:
#include <Sequence/shortestPath.hpp> #include <iostream> int main(int argc, char **argv) { //the shortest path between AAA and GGG, using the universal code, //requires 1 silent and 2 replacement changes. std::pair<unsigned,unsigned> muts = Sequence::mutsShortestPath("AAA","GGG"); std::cout << muts.first << ' ' << muts.second << std::endl; }
1.6.3