bpp-phyl3  3.0.0
bpp::CoalaCore Class Reference

This class is the core class inherited by the Coala class. COaLA is a branch-heterogeneous amino-acid substitution model. More...

#include <Bpp/Phyl/Model/Protein/CoalaCore.h>

+ Inheritance diagram for bpp::CoalaCore:
+ Collaboration diagram for bpp::CoalaCore:

Public Member Functions

 CoalaCore (size_t nbAxes=0)
 
virtual ~CoalaCore ()
 
CoalaCoreclone () const
 
size_t getNbrOfAxes () const
 
const RowMatrix< double > & getTppalAxesMatrix () const
 
const RowMatrix< double > & getRowCoordinates () const
 
const std::vector< double > & getColumnWeights () const
 

Protected Member Functions

ParameterList computeCOA (const SequenceDataInterface &data, double pseudoCount=0, bool param=true)
 Comoute COA from data and return the axis position parameters. More...
 
std::vector< double > prodMatrixVector (RowMatrix< double > &P, std::vector< double > &V)
 

Protected Attributes

bool init_
 
size_t nbrOfAxes_
 
RowMatrix< double > P_
 
RowMatrix< double > R_
 
std::vector< double > colWeights_
 
ParameterList paramValues_
 

Detailed Description

This class is the core class inherited by the Coala class. COaLA is a branch-heterogeneous amino-acid substitution model.

This class allows to compute the COA from the alignment, to define the parameter (axis positions), and implements a function used to compute the equilibrium frequencies from a set of coordinates along the principal axes of the COA.

Author
Mathieu Groussin
Parameters
nbAxesThe number of principal axes of the COA that have to be taken into account to optimize the 20 branch-specific equilibrium frequencies. This number is common to all branches, as well as on the root, where frequencies are optimized with a MVAprotein object (See the ProteinFrequencySet class).

Definition at line 31 of file CoalaCore.h.

Constructor & Destructor Documentation

◆ CoalaCore()

CoalaCore::CoalaCore ( size_t  nbAxes = 0)

Definition at line 29 of file CoalaCore.cpp.

Referenced by clone().

◆ ~CoalaCore()

virtual bpp::CoalaCore::~CoalaCore ( )
inlinevirtual

Definition at line 44 of file CoalaCore.h.

Member Function Documentation

◆ clone()

CoalaCore* bpp::CoalaCore::clone ( ) const
inline

Definition at line 46 of file CoalaCore.h.

References CoalaCore().

◆ computeCOA()

◆ getColumnWeights()

const std::vector<double>& bpp::CoalaCore::getColumnWeights ( ) const
inline

Definition at line 52 of file CoalaCore.h.

References colWeights_.

Referenced by bpp::MvaFrequencySet::initSet().

◆ getNbrOfAxes()

size_t bpp::CoalaCore::getNbrOfAxes ( ) const
inline

Definition at line 49 of file CoalaCore.h.

References nbrOfAxes_.

Referenced by bpp::MvaFrequencySet::initSet(), and bpp::BppOSubstitutionModelFormat::write().

◆ getRowCoordinates()

const RowMatrix<double>& bpp::CoalaCore::getRowCoordinates ( ) const
inline

Definition at line 51 of file CoalaCore.h.

References R_.

Referenced by bpp::MvaFrequencySet::initSet().

◆ getTppalAxesMatrix()

const RowMatrix<double>& bpp::CoalaCore::getTppalAxesMatrix ( ) const
inline

Definition at line 50 of file CoalaCore.h.

References P_.

Referenced by bpp::MvaFrequencySet::initSet().

◆ prodMatrixVector()

vector< double > CoalaCore::prodMatrixVector ( RowMatrix< double > &  P,
std::vector< double > &  V 
)
protected

Definition at line 156 of file CoalaCore.cpp.

Referenced by bpp::Coala::computeEquilibriumFrequencies().

Member Data Documentation

◆ colWeights_

std::vector<double> bpp::CoalaCore::colWeights_
protected

◆ init_

bool bpp::CoalaCore::init_
protected

Definition at line 34 of file CoalaCore.h.

◆ nbrOfAxes_

size_t bpp::CoalaCore::nbrOfAxes_
protected

Definition at line 35 of file CoalaCore.h.

Referenced by computeCOA(), and getNbrOfAxes().

◆ P_

RowMatrix<double> bpp::CoalaCore::P_
protected

◆ paramValues_

ParameterList bpp::CoalaCore::paramValues_
protected

Definition at line 39 of file CoalaCore.h.

Referenced by computeCOA().

◆ R_

RowMatrix<double> bpp::CoalaCore::R_
protected

Definition at line 37 of file CoalaCore.h.

Referenced by computeCOA(), and getRowCoordinates().


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