1 /************************************************************
2 * Copyright (c) 2006, BGI of Chinese Academy of Sciences
6 * Abstract: Declaration of model-selected and model-averged methods' classes.
9 * Author: Zhang Zhang (zhanghzhang@genomics.org.cn)
13 Goldman N, Yang Z (1994) A codon-based model of nucleotide
14 substitution for protein-coding DNA sequences. Mol. Biol.
17 Posada, D. and Buckley, T.R. (2004) Model Selection and Model Averaging
18 in Phylogenetics: Advantages of Akaike Information Criterion and Bayesian
19 Approaches over Likelihood Ratio Tests, Syst. Biol., 53, 793-808.
21 Sullivan, J. and Joyce, P. (2005) Model Selection in Phylogenetics,
22 Annual Review of Ecology, Evolution, and Systematics, 36, 445-466.
23 *************************************************************/
33 class MS
: public Base
{
38 string
Run(const char *seq1
, const char *seq2
, vector
<MLResult
> &result4MA
, string
&details
);
41 /* Calculate Ka and Ks based on a given model */
42 void selectModel(const char *seq1
, const char *seq2
, string candidate_model
, vector
<MLResult
> &result4MA
);
47 class MA
: public GY94
{
53 string
Run(const char *seq1
, const char *seq2
, vector
<MLResult
> result4MA
);