|
libsequence
1.9.5
|
Calculate shortest path between 2 codons. More...
#include <Sequence/shortestPath.hpp>
Public Types | |
| enum | pathType : std::int8_t { 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=GeneticCodes::UNIVERSAL) | |
| 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 55 of file shortestPath.hpp.
|
strong |
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 69 of file shortestPath.hpp.
|
explicit |
| codon1 | a std::string of length 3 |
| codon2 | a std::string of length 3 |
| code | which genetic code to use |
Definition at line 249 of file shortestPath.cc.
| shortestPath::const_iterator Sequence::shortestPath::begin | ( | ) | const |
Definition at line 294 of file shortestPath.cc.
| shortestPath::const_iterator Sequence::shortestPath::end | ( | ) | const |
Definition at line 304 of file shortestPath.cc.
| double Sequence::shortestPath::path_distance | ( | ) | const |
Definition at line 314 of file shortestPath.cc.
| shortestPath::pathType Sequence::shortestPath::type | ( | ) | const |
Definition at line 285 of file shortestPath.cc.