File: modelcodonsemiempirical.cpp

package info (click to toggle)
iqtree 1.5.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,780 kB
  • ctags: 11,529
  • sloc: cpp: 96,162; ansic: 59,874; python: 242; sh: 189; makefile: 45
file content (31 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * modelcodonsemiempirical.cpp
 *
 *  Created on: May 29, 2013
 *      Author: minh
 */

#include "modelcodonsemiempirical.h"

ModelCodonSemiEmpirical::ModelCodonSemiEmpirical(const char *model_name, string model_params,
		StateFreqType freq, string freq_params, PhyloTree *tree, bool count_rates) :
		ModelCodon(tree, count_rates)
{
	init(model_name, model_params, freq, freq_params);
}


ModelCodonSemiEmpirical::~ModelCodonSemiEmpirical() {
}


void ModelCodonSemiEmpirical::init(const char *model_name, string model_params, StateFreqType freq, string freq_params) {
	name = full_name = model_name;
	size_t pos = name.find('+');
	assert(pos != string::npos);
	if (name.substr(0,3) == "ECM") {
		ModelCodonEmpirical::init(name.substr(0,pos), "", FREQ_USER_DEFINED, "");
		ModelCodonParametric::init(name.substr(pos), model_params, freq, freq_params);
	}

}