Kimura's 2-parameter distance. More...
#include <Sequence/Kimura80.hpp>
Public Member Functions | |
| Kimura80 (const Sequence::Seq *seqa, const Sequence::Seq *seqb) | |
| double | K () |
| size_t | sites (void) |
Kimura's 2-parameter distance.
Calculate a measure of sequence divergence using Kimura's 1980 method.
The reference is: Kimura, M (1980) J. Mol. Evol 16: 111-120.
The calculation only depends on 3 numbers:
1.) the number of sites in the sequence
2.) the number of transitions between the two sequences
3.) the number of transversions between the two sequences
The implementation of this class does the following:
1.) compare each position in both sequences, counting transitions and transversions
2.) calculate distance using Kimura's formula
| Sequence::SeqException | if the two sequences are of unequal length. |
Definition at line 51 of file Kimura80.hpp.
| Sequence::Kimura80::Kimura80 | ( | const Sequence::Seq * | seqa, | |
| const Sequence::Seq * | seqb | |||
| ) | [explicit] |
| seqa | an object of type Sequence::Seq | |
| seqb | an object of type Sequence::Seq |
| Sequence::SeqException | if sequences are of different lengths |
Definition at line 47 of file Kimura80.cc.
| double Sequence::Kimura80::K | ( | void | ) |
Definition at line 116 of file Kimura80.cc.
| size_t Sequence::Kimura80::sites | ( | void | ) |
Definition at line 130 of file Kimura80.cc.
1.6.1