Fit a substitution model.
More...
#include <Bpp/Seq/Io/Maf/MaximumLikelihoodModelFitMafStatistics.h>
|
| | 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. More...
|
| |
| | 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. More...
|
| |
| std::string | getShortName () const |
| |
| std::string | getFullName () const |
| |
| void | compute (const MafBlock &block) |
| |
| std::vector< std::string > | getSupportedTags () const |
| |
|
| static const std::string | NO_PROPERTY = "RESERVED_NOPROPERTY" |
| |
Fit a substitution model.
All nucleotide substitution models and rate distributions are supported. Only time-homogeneous models are allowed though.
Definition at line 64 of file MaximumLikelihoodModelFitMafStatistics.h.
◆ MaximumLikelihoodModelFitMafStatistics() [1/3]
| bpp::MaximumLikelihoodModelFitMafStatistics::MaximumLikelihoodModelFitMafStatistics |
( |
SubstitutionModel * |
model, |
|
|
DiscreteDistribution * |
rDist, |
|
|
NucleotideFrequenciesSet * |
rootFreqs, |
|
|
const std::string & |
treePropertyIn, |
|
|
const std::vector< std::string > & |
parametersOut, |
|
|
const ParameterList & |
fixedParameters, |
|
|
bool |
reestimateBrLen = true, |
|
|
double |
propGapsToKeep = 0, |
|
|
bool |
gapsAsUnresolved = true |
|
) |
| |
|
inline |
Build a new distance estimation maf mafstat, based on the DistanceEstimation class.
A tree must be associated to each block before this analysis can be run.
- Parameters
-
| model | The substitution model. |
| rDist | The distribution of rates. |
| rootFreqs | Root frequencies for non-stationary model. If set to 0, then a stationary model is assumed. |
| treePropertyIn | The name of the property where the input tree is stored for each block. |
| parametersOut | Parameters to output. |
| fixedParameters | Parameter which should not be estimated but fixed to the given value instead. |
| reestimateBrLen | If the branch length from the tree should be reestimated (otherwise kept as is). |
| propGapsToKeep | The maximum gapfrequency in a site to include it in the analysis. |
| gapsAsUnresolved | Tell if gap characters should be considered as unresolved states. In ost cases it should be set to true, as very few substitution models consider gaps as genuine states. |
Definition at line 98 of file MaximumLikelihoodModelFitMafStatistics.h.
References init_().
◆ MaximumLikelihoodModelFitMafStatistics() [2/3]
| bpp::MaximumLikelihoodModelFitMafStatistics::MaximumLikelihoodModelFitMafStatistics |
( |
SubstitutionModel * |
model, |
|
|
DiscreteDistribution * |
rDist, |
|
|
NucleotideFrequenciesSet * |
rootFreqs, |
|
|
const Tree * |
tree, |
|
|
const std::vector< std::string > & |
parametersOut, |
|
|
const ParameterList & |
fixedParameters, |
|
|
bool |
reestimateBrLen = true, |
|
|
double |
propGapsToKeep = 0, |
|
|
bool |
gapsAsUnresolved = true |
|
) |
| |
|
inline |
Build a new distance estimation maf mafstat, based on the DistanceEstimation class.
This analysis use the same input tree for all blocks.
- Parameters
-
| model | The substitution model. |
| rDist | The distribution of rates. |
| rootFreqs | Root frequencies for non-stationary model. If set to 0, then a stationary model is assumed. |
| tree | The tree to use for fitting the model. |
| parametersOut | Parameters to output. |
| fixedParameters | Parameter which should not be estimated but fixed to the given value instead. |
| reestimateBrLen | If the branch length from the tree should be reestimated (otherwise kept as is). |
| propGapsToKeep | The maximum gapfrequency in a site to include it in the analysis. |
| gapsAsUnresolved | Tell if gap characters should be considered as unresolved states. In ost cases it should be set to true, as very few substitution models consider gaps as genuine states. |
Definition at line 135 of file MaximumLikelihoodModelFitMafStatistics.h.
References init_(), and modelSet_.
◆ MaximumLikelihoodModelFitMafStatistics() [3/3]
◆ compute()
| void MaximumLikelihoodModelFitMafStatistics::compute |
( |
const MafBlock & |
block | ) |
|
◆ getFullName()
| std::string bpp::MaximumLikelihoodModelFitMafStatistics::getFullName |
( |
| ) |
const |
|
inline |
◆ getShortName()
| std::string bpp::MaximumLikelihoodModelFitMafStatistics::getShortName |
( |
| ) |
const |
|
inline |
◆ getSupportedTags()
| std::vector<std::string> bpp::MaximumLikelihoodModelFitMafStatistics::getSupportedTags |
( |
| ) |
const |
|
inline |
◆ init_()
| void MaximumLikelihoodModelFitMafStatistics::init_ |
( |
| ) |
|
|
private |
◆ operator=()
Definition at line 165 of file MaximumLikelihoodModelFitMafStatistics.h.
References fixedParameters_, gapsAsUnresolved_, initParameters_, model_, modelSet_, parametersOut_, propGapsToKeep_, rDist_, reestimateBrLen_, rootFreqs_, tree_, and treePropertyIn_.
◆ fixedParameters_
| ParameterList bpp::MaximumLikelihoodModelFitMafStatistics::fixedParameters_ |
|
private |
◆ gapsAsUnresolved_
| bool bpp::MaximumLikelihoodModelFitMafStatistics::gapsAsUnresolved_ |
|
private |
◆ initParameters_
| ParameterList bpp::MaximumLikelihoodModelFitMafStatistics::initParameters_ |
|
private |
◆ model_
| std::auto_ptr<SubstitutionModel> bpp::MaximumLikelihoodModelFitMafStatistics::model_ |
|
private |
◆ modelSet_
| std::auto_ptr<SubstitutionModelSet> bpp::MaximumLikelihoodModelFitMafStatistics::modelSet_ |
|
private |
◆ NO_PROPERTY
| const string MaximumLikelihoodModelFitMafStatistics::NO_PROPERTY = "RESERVED_NOPROPERTY" |
|
static |
◆ parametersOut_
| std::vector<std::string> bpp::MaximumLikelihoodModelFitMafStatistics::parametersOut_ |
|
private |
◆ propGapsToKeep_
| double bpp::MaximumLikelihoodModelFitMafStatistics::propGapsToKeep_ |
|
private |
◆ rDist_
| std::auto_ptr<DiscreteDistribution> bpp::MaximumLikelihoodModelFitMafStatistics::rDist_ |
|
private |
◆ reestimateBrLen_
| bool bpp::MaximumLikelihoodModelFitMafStatistics::reestimateBrLen_ |
|
private |
◆ rootFreqs_
| std::auto_ptr<NucleotideFrequenciesSet> bpp::MaximumLikelihoodModelFitMafStatistics::rootFreqs_ |
|
private |
◆ tree_
| std::auto_ptr<const Tree> bpp::MaximumLikelihoodModelFitMafStatistics::tree_ |
|
private |
◆ treePropertyIn_
| std::string bpp::MaximumLikelihoodModelFitMafStatistics::treePropertyIn_ |
|
private |
The documentation for this class was generated from the following files: