5 #ifndef BPP_PHYL_MAPPING_PHYLOMAPPINGS_ONEPROCESSSEQUENCESUBSTITUTIONMAPPING_H
6 #define BPP_PHYL_MAPPING_PHYLOMAPPINGS_ONEPROCESSSEQUENCESUBSTITUTIONMAPPING_H
9 #include "../../Likelihood/PhyloLikelihoods/OneProcessSequencePhyloLikelihood.h"
10 #include "../SubstitutionMappingTools.h"
26 public std::enable_shared_from_this<OneProcessSequenceSubstitutionMapping>
29 std::shared_ptr<OneProcessSequencePhyloLikelihood>
pOPSP_;
39 std::shared_ptr<OneProcessSequencePhyloLikelihood> spp,
40 std::shared_ptr<SubstitutionRegisterInterface> reg,
41 std::shared_ptr<const AlphabetIndex2> weights,
42 std::shared_ptr<const AlphabetIndex2> distances);
68 double threshold = -1,
bool verbose =
true)
override
88 bool verbose =
true)
override;
93 return pOPSP_->substitutionProcess().getNumberOfModels();
98 return pOPSP_->substitutionProcess().getModelNumbers();
103 return *
pOPSP_->getLikelihoodCalculationSingleProcess();
108 return *
pOPSP_->getLikelihoodCalculationSingleProcess();
The AbstractSinglePhyloSubstitutionMapping class: substitution mapping linked with a Single Process P...
AbstractSinglePhyloSubstitutionMapping & operator=(const AbstractSinglePhyloSubstitutionMapping &sppm)
std::shared_ptr< const AlphabetIndex2 > getWeights() const
std::shared_ptr< const SubstitutionRegisterInterface > getSubstitutionRegister() const
std::shared_ptr< const AlphabetIndex2 > getDistances() const
std::unique_ptr< ProbabilisticSubstitutionMapping > counts_
The OneProcessSequenceSubstitutionMapping class: substitution mapping linked with a OneProcessSequenc...
std::vector< size_t > getModelNumbers() const override
void setBranchedModelSet_()
Set the models of the BranchedModelSet to the adhoc branches, for normalization.
OneProcessSequenceSubstitutionMapping(std::shared_ptr< OneProcessSequencePhyloLikelihood > spp, std::shared_ptr< SubstitutionRegisterInterface > reg, std::shared_ptr< const AlphabetIndex2 > weights, std::shared_ptr< const AlphabetIndex2 > distances)
OneProcessSequenceSubstitutionMapping * clone() const override
OneProcessSequenceSubstitutionMapping(const OneProcessSequenceSubstitutionMapping &sppm)
size_t getNumberOfModels() const override
void computeCounts(short unresolvedOption=SubstitutionMappingTools::UNRESOLVED_ZERO, double threshold=-1, bool verbose=true) override
ComputeCounts.
void computeNormalizations(const ParameterList &nullParams, short unresolvedOption=SubstitutionMappingTools::UNRESOLVED_ZERO, bool verbose=true) override
compute Normalizations
virtual ~OneProcessSequenceSubstitutionMapping()
LikelihoodCalculationSingleProcess & getLikelihoodCalculationSingleProcess()
OneProcessSequenceSubstitutionMapping & operator=(const OneProcessSequenceSubstitutionMapping &sppm)
std::shared_ptr< OneProcessSequencePhyloLikelihood > pOPSP_
const LikelihoodCalculationSingleProcess & getLikelihoodCalculationSingleProcess() const
Defines the basic types of data flow nodes.