File: ecopdmtreeset.cpp

package info (click to toggle)
iqtree 1.6.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,140 kB
  • sloc: cpp: 111,752; ansic: 53,619; python: 242; sh: 195; makefile: 52
file content (36 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
/*
 * EcoPDmtreeset.cpp
 *
 *  Created on: Nov 4, 2013
 *      Author: olga
 */

#include "ecopdmtreeset.h"
#include "tree/mtreeset.h"

EcoPDmtreeset::EcoPDmtreeset() {
}

EcoPDmtreeset::~EcoPDmtreeset() {
}

EcoPDmtreeset::EcoPDmtreeset(const char *userTreeFile, bool &is_rooted,
	int burnin, int max_count, const char *tree_weight_file) {
	initEcoSD(userTreeFile, is_rooted, burnin, max_count, tree_weight_file);
}

void EcoPDmtreeset::initEcoSD(const char *userTreeFile, bool &is_rooted, int burnin, int max_count,
	const char *tree_weight_file, IntVector *weights, bool compressed)
{
	readTrees(userTreeFile, is_rooted, burnin, max_count, weights, compressed);
	//checkConsistency();

	if (tree_weight_file)
		readIntVector(tree_weight_file, burnin, max_count, tree_weights);
/*	else if (!weights)
		tree_weights.resize(size(), 1);*/

	if (size() != tree_weights.size())
		outError("Tree file and tree weight file have different number of entries");

}