40 #ifndef _MAXIMUMLIKELIHOODMODELFITMAFSTATISTICS_H_ 41 #define _MAXIMUMLIKELIHOODMODELFITMAFSTATISTICS_H_ 43 #include <Bpp/Seq/Io/Maf/MafStatistics.h> 44 #include <Bpp/Seq/Container/SiteContainer.h> 47 #include <Bpp/Phyl/Model/SubstitutionModel.h> 48 #include <Bpp/Phyl/Model/SubstitutionModelSetTools.h> 49 #include <Bpp/Phyl/Model/FrequenciesSet/NucleotideFrequenciesSet.h> 50 #include <Bpp/Phyl/Tree.h> 51 #include <Bpp/Phyl/Likelihood/DiscreteRatesAcrossSitesTreeLikelihood.h> 54 #include <Bpp/Numeric/Prob/DiscreteDistribution.h> 65 public AbstractMafStatistics
69 std::auto_ptr<SubstitutionModel>
model_;
71 std::auto_ptr<DiscreteDistribution>
rDist_;
74 std::auto_ptr<const Tree>
tree_;
99 SubstitutionModel* model,
100 DiscreteDistribution* rDist,
101 NucleotideFrequenciesSet* rootFreqs,
102 const std::string& treePropertyIn,
103 const std::vector<std::string>& parametersOut,
104 const ParameterList& fixedParameters,
105 bool reestimateBrLen =
true,
106 double propGapsToKeep = 0,
107 bool gapsAsUnresolved =
true):
108 AbstractMafStatistics(),
136 SubstitutionModel* model,
137 DiscreteDistribution* rDist,
138 NucleotideFrequenciesSet* rootFreqs,
140 const std::vector<std::string>& parametersOut,
141 const ParameterList& fixedParameters,
142 bool reestimateBrLen =
true,
143 double propGapsToKeep = 0,
144 bool gapsAsUnresolved =
true):
145 AbstractMafStatistics(),
152 modelSet_.reset(SubstitutionModelSetTools::createHomogeneousModelSet(model->clone(), rootFreqs->clone(), tree));
158 AbstractMafStatistics(),
184 std::string
getFullName()
const {
return "Maximum Likelihood Model Fitting"; }
185 void compute(
const MafBlock& block);
187 std::vector<std::string> tags;
188 tags.push_back(
"NbIterations");
201 #endif //_MAXIMUMLIKELIHOODDISTANCEESTIMATIONMAFSTATISTICS_H_ std::string getShortName() const
std::auto_ptr< const Tree > tree_
MaximumLikelihoodModelFitMafStatistics & operator=(const MaximumLikelihoodModelFitMafStatistics &mafstat)
static const std::string NO_PROPERTY
MaximumLikelihoodModelFitMafStatistics(SubstitutionModel *model, DiscreteDistribution *rDist, NucleotideFrequenciesSet *rootFreqs, const Tree *tree, const std::vector< std::string > ¶metersOut, const ParameterList &fixedParameters, bool reestimateBrLen=true, double propGapsToKeep=0, bool gapsAsUnresolved=true)
Build a new distance estimation maf mafstat, based on the DistanceEstimation class.
ParameterList initParameters_
std::auto_ptr< SubstitutionModelSet > modelSet_
std::vector< std::string > parametersOut_
MaximumLikelihoodModelFitMafStatistics(SubstitutionModel *model, DiscreteDistribution *rDist, NucleotideFrequenciesSet *rootFreqs, const std::string &treePropertyIn, const std::vector< std::string > ¶metersOut, const ParameterList &fixedParameters, bool reestimateBrLen=true, double propGapsToKeep=0, bool gapsAsUnresolved=true)
Build a new distance estimation maf mafstat, based on the DistanceEstimation class.
std::string treePropertyIn_
void compute(const MafBlock &block)
std::string getFullName() const
std::auto_ptr< NucleotideFrequenciesSet > rootFreqs_
std::auto_ptr< DiscreteDistribution > rDist_
MaximumLikelihoodModelFitMafStatistics(const MaximumLikelihoodModelFitMafStatistics &mafstat)
std::auto_ptr< SubstitutionModel > model_
Fit a substitution model.
std::vector< std::string > getSupportedTags() const
ParameterList fixedParameters_