Calculate shortest path between 2 codons. More...
#include <Sequence/shortestPath.hpp>
Public Types | |
| enum | pathType { S, N, SS, SN, NN, SSS, SSN, SNN, NNN, NONE, AMBIG } |
|
typedef std::vector < std::string > ::const_iterator | const_iterator |
Public Member Functions | |
| shortestPath (const std::string &codon1, const std::string &codon2, const Sequence::GeneticCodes &code=Sequence::UNIVERSAL) throw (Sequence::SeqException) | |
| pathType | type () const |
| double | path_distance () const |
| const_iterator | begin () const |
| const_iterator | end () const |
Calculate shortest path between 2 codons.
A class which calculates the shortest path between two codons. The length of a path is in terms of the sum of the Grantham's distances along it's branches.
Definition at line 54 of file shortestPath.hpp.
An enum type to describe the shortest path between 2 codons. An S refers to a synonymous change, N nonsynonymous. For example, SSN means that the shortest path b/w 2 codons requires 2 synonymous and 1 nonsynonymous change. If the 2 codons don't differ, the value is NONE. If the path cannot be determined, the value is AMBIG
Definition at line 67 of file shortestPath.hpp.
| Sequence::shortestPath::shortestPath | ( | const std::string & | codon1, | |
| const std::string & | codon2, | |||
| const Sequence::GeneticCodes & | code = Sequence::UNIVERSAL | |||
| ) | throw (Sequence::SeqException) [explicit] |
| codon1 | a std::string of length 3 | |
| codon2 | a std::string of length 3 | |
| code | which genetic code to use |
Definition at line 253 of file shortestPath.cc.
| shortestPath::const_iterator Sequence::shortestPath::begin | ( | ) | const |
Definition at line 297 of file shortestPath.cc.
| shortestPath::const_iterator Sequence::shortestPath::end | ( | ) | const |
Definition at line 307 of file shortestPath.cc.
| double Sequence::shortestPath::path_distance | ( | ) | const |
Definition at line 317 of file shortestPath.cc.
| shortestPath::pathType Sequence::shortestPath::type | ( | ) | const |
Definition at line 288 of file shortestPath.cc.
1.6.3