bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Distance/DistanceEstimation.h>
Public Member Functions | |
DistanceEstimation (std::shared_ptr< SubstitutionProcessInterface > process, size_t verbose=1) | |
Create a new DistanceEstimation object according to a given substitution process. More... | |
DistanceEstimation (std::shared_ptr< BranchModelInterface > model, std::shared_ptr< DiscreteDistributionInterface > rateDist, size_t verbose=1) | |
Create a new DistanceEstimation object according to a given substitution model and a rate distribution. More... | |
DistanceEstimation (std::shared_ptr< SubstitutionProcessInterface > process, std::shared_ptr< const AlignmentDataInterface > sites, size_t verbose=1, bool computeMat=true) | |
Create a new DistanceEstimation object and compute distances according to a given substitution process. More... | |
DistanceEstimation (std::shared_ptr< BranchModelInterface > model, std::shared_ptr< DiscreteDistributionInterface > rateDist, std::shared_ptr< const AlignmentDataInterface > sites, size_t verbose=1, bool computeMat=true) | |
Create a new DistanceEstimation object and compute distances according to a given substitution model and a rate distribution. More... | |
DistanceEstimation (const DistanceEstimation &distanceEstimation) | |
Copy constructor. More... | |
DistanceEstimation & | operator= (const DistanceEstimation &distanceEstimation) |
Assignment operator. More... | |
virtual | ~DistanceEstimation () |
DistanceEstimation * | clone () const override |
void | computeMatrix () |
Perform the distance computation. More... | |
std::unique_ptr< DistanceMatrix > | getMatrix () const |
Get the distance matrix. More... | |
bool | hasProcess () const |
const SubstitutionProcessInterface & | process () const |
std::shared_ptr< const SubstitutionProcessInterface > | getProcess () const |
void | setProcess (std::shared_ptr< SubstitutionProcessInterface > process=nullptr) |
void | setData (std::shared_ptr< const AlignmentDataInterface > sites=nullptr) |
std::shared_ptr< const AlignmentDataInterface > | getData () const |
const AlignmentDataInterface & | data () const |
void | setOptimizer (std::shared_ptr< OptimizerInterface > optimizer) |
std::shared_ptr< const OptimizerInterface > | getOptimizer () const |
std::shared_ptr< OptimizerInterface > | getOptimizer () |
const OptimizerInterface & | optimizer () const |
OptimizerInterface & | optimizer () |
void | resetOptimizer () |
bool | matchParametersValues (const ParameterList ¶meters) |
void | setAdditionalParameters (const ParameterList ¶meters) |
Specify a list of parameters to be estimated. More... | |
void | resetAdditionalParameters () |
Reset all additional parameters. More... | |
void | setVerbose (size_t verbose) |
size_t | getVerbose () const |
Private Member Functions | |
void | init_ () |
Private Attributes | |
std::shared_ptr< SubstitutionProcessInterface > | process_ |
size_t | numProc_ |
std::shared_ptr< const AlignmentDataInterface > | sites_ |
std::shared_ptr< DistanceMatrix > | dist_ |
std::shared_ptr< OptimizerInterface > | optimizer_ |
std::shared_ptr< MetaOptimizer > | defaultOptimizer_ |
size_t | verbose_ |
ParameterList | parameters_ |
Definition at line 28 of file DistanceEstimation.h.
|
inline |
Create a new DistanceEstimation object according to a given substitution process.
process | The substitution process to use. |
verbose | The verbose level:
|
Definition at line 53 of file DistanceEstimation.h.
References init_().
Referenced by clone().
|
inline |
Create a new DistanceEstimation object according to a given substitution model and a rate distribution.
model | The substitution model to use. |
rateDist | The discrete rate distribution to use. |
verbose | The verbose level:
|
Definition at line 80 of file DistanceEstimation.h.
|
inline |
Create a new DistanceEstimation object and compute distances according to a given substitution process.
process | The substitution process to use. |
sites | The sequence data. |
verbose | The verbose level:
|
computeMat | if true the computeMatrix() method is called. |
Definition at line 111 of file DistanceEstimation.h.
References computeMatrix(), and init_().
|
inline |
Create a new DistanceEstimation object and compute distances according to a given substitution model and a rate distribution.
model | The substitution model to use. |
rateDist | The discrete rate distribution to use. |
sites | The sequence data. |
verbose | The verbose level:
|
computeMat | if true the computeMatrix() method is called. |
Definition at line 144 of file DistanceEstimation.h.
References computeMatrix(), init_(), and process_.
|
inline |
Copy constructor.
Only the distance matrix is hard-copied, if there is one.
distanceEstimation | The object to copy. |
Definition at line 171 of file DistanceEstimation.h.
References dist_.
|
inlinevirtual |
Definition at line 211 of file DistanceEstimation.h.
|
inlineoverridevirtual |
Implements bpp::Clonable.
Definition at line 213 of file DistanceEstimation.h.
References DistanceEstimation().
void DistanceEstimation::computeMatrix | ( | ) |
Perform the distance computation.
Result can be called by the getMatrix() method.
NullPointerException | if at least one of the model, rate distribution or data are not initialized. |
Definition at line 72 of file DistanceEstimation.cpp.
References bpp::ParameterList::addParameters(), bpp::AutoParameter::CONSTRAINTS_AUTO, bpp::ApplicationTools::displayGauge(), bpp::ApplicationTools::message, bpp::Newick::parenthesisToPhyloTree(), and bpp::TextTools::toString().
Referenced by bpp::OptimizationTools::buildDistanceTree(), DistanceEstimation(), and bpp::OptimizationTools::estimateDistanceMatrix().
|
inline |
Definition at line 260 of file DistanceEstimation.h.
References sites_.
|
inline |
Definition at line 258 of file DistanceEstimation.h.
References sites_.
Referenced by bpp::OptimizationTools::buildDistanceTree().
|
inline |
Get the distance matrix.
Definition at line 234 of file DistanceEstimation.h.
References dist_.
Referenced by bpp::OptimizationTools::buildDistanceTree(), and bpp::OptimizationTools::estimateDistanceMatrix().
|
inline |
Definition at line 269 of file DistanceEstimation.h.
References optimizer_.
|
inline |
Definition at line 267 of file DistanceEstimation.h.
References optimizer_.
|
inline |
Definition at line 249 of file DistanceEstimation.h.
References process_.
|
inline |
Definition at line 311 of file DistanceEstimation.h.
References verbose_.
Referenced by bpp::OptimizationTools::buildDistanceTree().
|
inline |
Definition at line 239 of file DistanceEstimation.h.
References process_.
Referenced by matchParametersValues(), and process().
|
private |
Definition at line 36 of file DistanceEstimation.cpp.
References bpp::ParameterList::addParameters(), bpp::ParameterList::getParameterNames(), bpp::MetaOptimizerInfos::IT_TYPE_FULL, bpp::MetaOptimizerInfos::IT_TYPE_STEP, and bpp::TextTools::toString().
Referenced by DistanceEstimation().
|
inline |
Definition at line 277 of file DistanceEstimation.h.
References hasProcess(), and process_.
Referenced by bpp::OptimizationTools::buildDistanceTree().
|
inline |
Assignment operator.
Only the distance matrix is hard-copied, if there is one.
distanceEstimation | The object to copy. |
Definition at line 195 of file DistanceEstimation.h.
References dist_, numProc_, optimizer_, parameters_, process_, sites_, and verbose_.
|
inline |
Definition at line 273 of file DistanceEstimation.h.
References optimizer_.
|
inline |
Definition at line 271 of file DistanceEstimation.h.
References optimizer_.
Referenced by setOptimizer().
|
inline |
Definition at line 241 of file DistanceEstimation.h.
References hasProcess(), and process_.
Referenced by bpp::OptimizationTools::buildDistanceTree(), bpp::OptimizationTools::estimateDistanceMatrix(), and setProcess().
|
inline |
Reset all additional parameters.
Definition at line 299 of file DistanceEstimation.h.
References parameters_, and bpp::ParameterList::reset().
Referenced by bpp::OptimizationTools::buildDistanceTree(), and bpp::OptimizationTools::estimateDistanceMatrix().
|
inline |
Definition at line 275 of file DistanceEstimation.h.
References defaultOptimizer_, and optimizer_.
|
inline |
Specify a list of parameters to be estimated.
Parameters will be estimated separately for each distance.
parameters | A list of parameters to estimate. |
Definition at line 291 of file DistanceEstimation.h.
References parameters_.
Referenced by bpp::OptimizationTools::buildDistanceTree(), and bpp::OptimizationTools::estimateDistanceMatrix().
|
inline |
Definition at line 256 of file DistanceEstimation.h.
References sites_.
|
inline |
Definition at line 262 of file DistanceEstimation.h.
References optimizer(), and optimizer_.
|
inline |
Definition at line 254 of file DistanceEstimation.h.
|
inline |
verbose | Verbose level. |
Definition at line 307 of file DistanceEstimation.h.
References verbose_.
Referenced by bpp::OptimizationTools::buildDistanceTree(), and bpp::OptimizationTools::estimateDistanceMatrix().
|
private |
Definition at line 37 of file DistanceEstimation.h.
Referenced by resetOptimizer().
|
private |
Definition at line 35 of file DistanceEstimation.h.
Referenced by DistanceEstimation(), getMatrix(), and operator=().
|
private |
Definition at line 33 of file DistanceEstimation.h.
Referenced by operator=().
|
private |
Definition at line 36 of file DistanceEstimation.h.
Referenced by getOptimizer(), operator=(), optimizer(), resetOptimizer(), and setOptimizer().
|
private |
Definition at line 39 of file DistanceEstimation.h.
Referenced by operator=(), resetAdditionalParameters(), and setAdditionalParameters().
|
private |
Definition at line 32 of file DistanceEstimation.h.
Referenced by DistanceEstimation(), getProcess(), hasProcess(), matchParametersValues(), operator=(), process(), and setProcess().
|
private |
Definition at line 34 of file DistanceEstimation.h.
Referenced by data(), getData(), operator=(), and setData().
|
private |
Definition at line 38 of file DistanceEstimation.h.
Referenced by getVerbose(), operator=(), and setVerbose().