40 #ifndef _ABSTRACTTREEPARSIMONYSCORE_H_ 41 #define _ABSTRACTTREEPARSIMONYSCORE_H_ 44 #include "../Model/StateMap.h" 47 #include <Bpp/Seq/Container/SiteContainer.h> 67 const SiteContainer& data,
74 const SiteContainer& data,
87 data_ =
dynamic_cast<SiteContainer*
>(tp.
data_->clone());
94 data_ =
dynamic_cast<SiteContainer*
>(tp.
data_->clone());
108 void init_(
const SiteContainer& data,
bool verbose)
throw (Exception);
121 #endif // _ABSTRACTTREEPARSIMONYSCORE_H_ Compute a parsimony score.
AbstractTreeParsimonyScore(const Tree &tree, const SiteContainer &data, bool verbose, bool includeGaps)
const Alphabet * alphabet_
virtual StateMap * clone() const =0
The phylogenetic tree class.
Interface for phylogenetic tree objects.
const StateMap * statesMap_
AbstractTreeParsimonyScore & operator=(const AbstractTreeParsimonyScore &tp)
void init_(const SiteContainer &data, bool verbose)
TreeTemplate< Node > * tree_
const SiteContainer * data_
TreeTemplate< Node > * getTreeP_()
virtual ~AbstractTreeParsimonyScore()
virtual std::vector< unsigned int > getScoreForEachSite() const
Get the score for each site for the current tree, i.e. the total minimum number of changes in the tre...
const TreeTemplate< Node > * getTreeP_() const
Partial implementation of the TreeParsimonyScore interface.
virtual const StateMap & getStateMap() const
Map the states of a given alphabet which have a model state.
AbstractTreeParsimonyScore(const AbstractTreeParsimonyScore &tp)
virtual const Tree & getTree() const
Get the tree for wich scores are computed.