| 1 | /* |
|---|
| 2 | |
|---|
| 3 | PHYML : a program that computes maximum likelihood phylogenies from |
|---|
| 4 | DNA or AA homologous sequences |
|---|
| 5 | |
|---|
| 6 | Copyright (C) Stephane Guindon. Oct 2003 onward |
|---|
| 7 | |
|---|
| 8 | All parts of the source except where indicated are distributed under |
|---|
| 9 | the GNU public licence. See http://www.opensource.org for details. |
|---|
| 10 | |
|---|
| 11 | */ |
|---|
| 12 | |
|---|
| 13 | #include <config.h> |
|---|
| 14 | |
|---|
| 15 | #ifndef MODELS_H |
|---|
| 16 | #define MODELS_H |
|---|
| 17 | |
|---|
| 18 | #include "utilities.h" |
|---|
| 19 | #include "eigen.h" |
|---|
| 20 | #include "free.h" |
|---|
| 21 | #include "stats.h" |
|---|
| 22 | #include "mixt.h" |
|---|
| 23 | |
|---|
| 24 | void PMat(phydbl l, t_mod *mod, int pos, phydbl *Pij); |
|---|
| 25 | void PMat_K80(phydbl l,phydbl kappa, int pos, phydbl *Pij); |
|---|
| 26 | void PMat_TN93(phydbl l, t_mod *mod, int pos, phydbl *Pij); |
|---|
| 27 | void PMat_Empirical(phydbl l, t_mod *mod, int pos, phydbl *Pij); |
|---|
| 28 | void PMat_Zero_Br_Len(t_mod *mod, int pos, phydbl *Pij); |
|---|
| 29 | void PMat_Gamma(phydbl l, t_mod *mod, int pos, phydbl *Pij); |
|---|
| 30 | int GetDaa (phydbl *daa, phydbl *pi, char *file_name); |
|---|
| 31 | void Update_Qmat_GTR(phydbl *rr, phydbl *rr_val, int *rr_num, phydbl *pi, phydbl *qmat); |
|---|
| 32 | void Update_Qmat_HKY(phydbl kappa, phydbl *pi, phydbl *qmat); |
|---|
| 33 | void Update_Qmat_Generic(phydbl *rr, phydbl *pi, int ns, phydbl *qmat); |
|---|
| 34 | void Translate_Custom_Mod_String(t_mod *mod); |
|---|
| 35 | void Set_Model_Parameters(t_mod *mod); |
|---|
| 36 | phydbl GTR_Dist(phydbl *F, phydbl alpha, eigen *eigen_struct); |
|---|
| 37 | phydbl General_Dist(phydbl *F, t_mod *mod, eigen *eigen_struct); |
|---|
| 38 | void Switch_From_Mod_To_M4mod(t_mod *mod); |
|---|
| 39 | void Switch_From_M4mod_To_Mod(t_mod *mod); |
|---|
| 40 | void PMat_JC69(phydbl l, int pos, phydbl *Pij, t_mod *mod); |
|---|
| 41 | phydbl Get_Lambda_F84(phydbl *pi, phydbl *kappa); |
|---|
| 42 | void Update_Eigen(t_mod *mod); |
|---|
| 43 | void Update_RAS(t_mod *mod); |
|---|
| 44 | void Update_Efrq(t_mod *mod); |
|---|
| 45 | |
|---|
| 46 | #endif |
|---|