5 #ifndef BPP_PHYL_PARSIMONY_ABSTRACTTREEPARSIMONYSCORE_H
6 #define BPP_PHYL_PARSIMONY_ABSTRACTTREEPARSIMONYSCORE_H
9 #include "../Model/StateMap.h"
25 std::shared_ptr<const SiteContainerInterface>
data_;
33 std::shared_ptr<const SiteContainerInterface> data,
39 std::shared_ptr<const SiteContainerInterface> data,
40 std::shared_ptr<const StateMapInterface> statesMap,
46 void init_(std::shared_ptr<const SiteContainerInterface> data,
bool verbose);
Partial implementation of the TreeParsimonyScore interface.
const Tree & tree() const override
Get the tree for which scores are computed.
virtual const TreeTemplate< Node > & treeTemplate() const
virtual std::shared_ptr< TreeTemplate< Node > > getTreeTemplate_()
virtual ~AbstractTreeParsimonyScore()
void init_(std::shared_ptr< const SiteContainerInterface > data, bool verbose)
std::shared_ptr< TreeTemplate< Node > > treePtr_
const StateMapInterface & stateMap() const override
Get the state map associated to this instance.
virtual std::shared_ptr< const TreeTemplate< Node > > getTreeTemplate() const
virtual TreeTemplate< Node > & treeTemplate_()
std::vector< unsigned int > getScorePerSite() const override
Get the score for each site for the current tree, i.e. the total minimum number of changes in the tre...
std::shared_ptr< const SiteContainerInterface > data_
std::shared_ptr< const StateMapInterface > getStateMap() const override
Get the state map associated to this instance.
std::shared_ptr< const Alphabet > alphabet_
std::shared_ptr< const StateMapInterface > statesMap_
AbstractTreeParsimonyScore(std::shared_ptr< TreeTemplate< Node >> tree, std::shared_ptr< const SiteContainerInterface > data, bool verbose, bool includeGaps)
Map the states of a given alphabet which have a model state.
Compute a parsimony score.
The phylogenetic tree class.
Interface for phylogenetic tree objects.
Defines the basic types of data flow nodes.