bpp-phyl-omics  2.2.0
bpp::MaximumLikelihoodModelFitMafStatistics Class Reference

Fit a substitution model. More...

#include <Bpp/Seq/Io/Maf/MaximumLikelihoodModelFitMafStatistics.h>

+ Inheritance diagram for bpp::MaximumLikelihoodModelFitMafStatistics:
+ Collaboration diagram for bpp::MaximumLikelihoodModelFitMafStatistics:

Public Member Functions

 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)
 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 > &parametersOut, 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 Public Attributes

static const std::string NO_PROPERTY = "RESERVED_NOPROPERTY"
 

Private Member Functions

 MaximumLikelihoodModelFitMafStatistics (const MaximumLikelihoodModelFitMafStatistics &mafstat)
 
MaximumLikelihoodModelFitMafStatisticsoperator= (const MaximumLikelihoodModelFitMafStatistics &mafstat)
 
void init_ ()
 

Private Attributes

std::auto_ptr< SubstitutionModel > model_
 
std::auto_ptr< SubstitutionModelSet > modelSet_
 
std::auto_ptr< DiscreteDistribution > rDist_
 
std::auto_ptr< NucleotideFrequenciesSet > rootFreqs_
 
std::string treePropertyIn_
 
std::auto_ptr< const Tree > tree_
 
std::vector< std::string > parametersOut_
 
bool reestimateBrLen_
 
double propGapsToKeep_
 
bool gapsAsUnresolved_
 
ParameterList initParameters_
 
ParameterList fixedParameters_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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
modelThe substitution model.
rDistThe distribution of rates.
rootFreqsRoot frequencies for non-stationary model. If set to 0, then a stationary model is assumed.
treePropertyInThe name of the property where the input tree is stored for each block.
parametersOutParameters to output.
fixedParametersParameter which should not be estimated but fixed to the given value instead.
reestimateBrLenIf the branch length from the tree should be reestimated (otherwise kept as is).
propGapsToKeepThe maximum gapfrequency in a site to include it in the analysis.
gapsAsUnresolvedTell 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
modelThe substitution model.
rDistThe distribution of rates.
rootFreqsRoot frequencies for non-stationary model. If set to 0, then a stationary model is assumed.
treeThe tree to use for fitting the model.
parametersOutParameters to output.
fixedParametersParameter which should not be estimated but fixed to the given value instead.
reestimateBrLenIf the branch length from the tree should be reestimated (otherwise kept as is).
propGapsToKeepThe maximum gapfrequency in a site to include it in the analysis.
gapsAsUnresolvedTell 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]

bpp::MaximumLikelihoodModelFitMafStatistics::MaximumLikelihoodModelFitMafStatistics ( const MaximumLikelihoodModelFitMafStatistics mafstat)
inlineprivate

Definition at line 157 of file MaximumLikelihoodModelFitMafStatistics.h.

Member Function Documentation

◆ compute()

void MaximumLikelihoodModelFitMafStatistics::compute ( const MafBlock &  block)

Definition at line 56 of file MaximumLikelihoodModelFitMafStatistics.cpp.

◆ getFullName()

std::string bpp::MaximumLikelihoodModelFitMafStatistics::getFullName ( ) const
inline

Definition at line 184 of file MaximumLikelihoodModelFitMafStatistics.h.

◆ getShortName()

std::string bpp::MaximumLikelihoodModelFitMafStatistics::getShortName ( ) const
inline

Definition at line 183 of file MaximumLikelihoodModelFitMafStatistics.h.

◆ getSupportedTags()

std::vector<std::string> bpp::MaximumLikelihoodModelFitMafStatistics::getSupportedTags ( ) const
inline

Definition at line 186 of file MaximumLikelihoodModelFitMafStatistics.h.

References parametersOut_.

◆ init_()

void MaximumLikelihoodModelFitMafStatistics::init_ ( )
private

◆ operator=()

Member Data Documentation

◆ fixedParameters_

ParameterList bpp::MaximumLikelihoodModelFitMafStatistics::fixedParameters_
private

Definition at line 80 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ gapsAsUnresolved_

bool bpp::MaximumLikelihoodModelFitMafStatistics::gapsAsUnresolved_
private

Definition at line 78 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ initParameters_

ParameterList bpp::MaximumLikelihoodModelFitMafStatistics::initParameters_
private

Definition at line 79 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ model_

std::auto_ptr<SubstitutionModel> bpp::MaximumLikelihoodModelFitMafStatistics::model_
private

Definition at line 69 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ modelSet_

std::auto_ptr<SubstitutionModelSet> bpp::MaximumLikelihoodModelFitMafStatistics::modelSet_
private

◆ NO_PROPERTY

const string MaximumLikelihoodModelFitMafStatistics::NO_PROPERTY = "RESERVED_NOPROPERTY"
static

Definition at line 193 of file MaximumLikelihoodModelFitMafStatistics.h.

◆ parametersOut_

std::vector<std::string> bpp::MaximumLikelihoodModelFitMafStatistics::parametersOut_
private

Definition at line 75 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by getSupportedTags(), and operator=().

◆ propGapsToKeep_

double bpp::MaximumLikelihoodModelFitMafStatistics::propGapsToKeep_
private

Definition at line 77 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ rDist_

std::auto_ptr<DiscreteDistribution> bpp::MaximumLikelihoodModelFitMafStatistics::rDist_
private

Definition at line 71 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ reestimateBrLen_

bool bpp::MaximumLikelihoodModelFitMafStatistics::reestimateBrLen_
private

Definition at line 76 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ rootFreqs_

std::auto_ptr<NucleotideFrequenciesSet> bpp::MaximumLikelihoodModelFitMafStatistics::rootFreqs_
private

Definition at line 72 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ tree_

std::auto_ptr<const Tree> bpp::MaximumLikelihoodModelFitMafStatistics::tree_
private

Definition at line 74 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().

◆ treePropertyIn_

std::string bpp::MaximumLikelihoodModelFitMafStatistics::treePropertyIn_
private

Definition at line 73 of file MaximumLikelihoodModelFitMafStatistics.h.

Referenced by operator=().


The documentation for this class was generated from the following files: