modified: SpatialOmicsCoord.py
[GalaxyCodeBases.git] / c_cpp / etc / KaKs_Calculator / src / MSMA.h
blobfc590ac8e0c7d8fa718a3f115e22c9b5ca2207d1
1 /************************************************************
2 * Copyright (c) 2006, BGI of Chinese Academy of Sciences
3 * All rights reserved.
5 * Filename: MSMA.h
6 * Abstract: Declaration of model-selected and model-averged methods' classes.
8 * Version: 1.0
9 * Author: Zhang Zhang (zhanghzhang@genomics.org.cn)
10 * Date: Apr. 2006
12 References:
13 Goldman N, Yang Z (1994) A codon-based model of nucleotide
14 substitution for protein-coding DNA sequences. Mol. Biol.
15 Evol. 11:725-736.
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 *************************************************************/
25 #if !defined(MA_H)
26 #define MA_H
28 #include "GY94.h"
30 using namespace std;
33 class MS: public Base {
35 public:
36 MS();
37 /* Main function */
38 string Run(const char *seq1, const char *seq2, vector<MLResult> &result4MA, string &details);
40 protected:
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 {
49 public:
50 MA();
52 /* Main function */
53 string Run(const char *seq1, const char *seq2, vector<MLResult> result4MA);
58 #endif