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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/*
* parstree.h
*
* Created on: Nov 6, 2014
* Author: diep
*/
#ifndef PARSTREE_H_
#define PARSTREE_H_
#include "iqtree.h"
#define BootValTypePars unsigned short // Diep added
class ParsTree: public IQTree {
public:
/**************************************************************************
* Methods
*************************************************************************/
/**
* default constructor
*/
ParsTree();
/**
* Constructor with given alignment
* @param alignment
*/
ParsTree(Alignment *alignment);
/**
* destructor
*/
~ParsTree();
// /**
// * allocate for ptn_pars if needed
// */
// void allocatePtnPars(int nptn);
/*
* For the starting phase: phyloanalysis.cpp
*/
virtual bool isParsimonyTree() {
return true;
}
void initParsData(Params* pars_params);
void printPatternScore();
UINT findMstScore(int ptn); // find minimum spanning tree score of a given pattern
/**************************************************************************
* Data
*************************************************************************/
// SankoffCostMatrix* cost_matrix;
int cost_nstates; // Sep 2016: # of states provided by cost matrix
UINT tree_pars;
/**
* Store array of pattern parsimony computed in computeParsimonyBranch()
*/
//BootValTypePars* _pattern_pars;
};
#endif /* PARSTREE_H_ */
|