1 /***************************************************************
2 * Copyright (c) 2005, BGI of Chinese Academy of Sciences
6 * Abstract: Declaration of NG86 class inherited base class.
9 * Author: Zhang Zhang (zhanghzhang@genomics.org.cn)
13 Nei M, Gojobori T (1986) Simple methods for estimating the
14 numbers of synonymous and nonsynonymous nucleotide substitutions.
15 Mol Biol Evol 3:418-426.
16 ****************************************************************/
26 class NG86
: public Base
{
31 /* Main function of calculating kaks */
32 string
Run(string seq1
, string seq2
);
35 /* Count codon's sites */
36 void getCondonSite(string codon
);
37 /* Count codon's differences */
38 void getCondonDifference(string codon1
, string codon2
);
40 void PreProcess(string seq1
, string seq2
);
41 /* Jukes and Cantor's one-parameter formula */
42 double kaks_formula(double p
);
45 /* Proportions of sysnonymous(Ps) and nonsysnonymous(Pn): Ps=Sd/S, Pn=Nd/N */
49 class NONE
: public NG86
{
53 /* Main function of calculating kaks */
54 string
Run(string seq1
, string seq2
);