bpp-phyl3  3.0.0
bpp::RASiteSimulationResult Class Reference

Data structure to store the result of a DetailedSiteSimulator. More...

#include <Bpp/Phyl/Simulation/DetailedSiteSimulator.h>

+ Inheritance diagram for bpp::RASiteSimulationResult:
+ Collaboration diagram for bpp::RASiteSimulationResult:

Public Member Functions

 RASiteSimulationResult (std::shared_ptr< const ParametrizablePhyloTree > tree, std::shared_ptr< const StateMapInterface > stateMap, size_t ancestralStateIndex, double rate)
 
virtual ~RASiteSimulationResult ()
 
virtual double getRate () const
 
std::shared_ptr< const AlphabetgetAlphabet () const
 
const Alphabetalphabet () const
 
virtual void addNode (unsigned int nodeId, MutationPath path)
 
virtual size_t getAncestralState (size_t i) const
 
virtual size_t getAncestralState (unsigned int nodeId) const
 
virtual const MutationPathgetMutationPath (size_t i) const
 
virtual const MutationPathgetMutationPath (unsigned int nodeId) const
 
virtual size_t getSubstitutionCount (size_t i) const
 
virtual void getSubstitutionCount (size_t i, const SubstitutionRegisterInterface &reg, std::vector< double > &counts) const
 
virtual size_t getSubstitutionCount (unsigned int nodeId) const
 
virtual void getSubstitutionCount (unsigned int nodeId, const SubstitutionRegisterInterface &reg, std::vector< double > &counts) const
 
virtual VVdouble getSubstitutionVector (const SubstitutionRegisterInterface &reg) const
 
virtual std::vector< size_t > getFinalStates () const
 
virtual std::unique_ptr< SiteInterfacegetSite (const TransitionModelInterface &model) const
 
virtual std::vector< std::string > getLeaveNames () const
 

Protected Attributes

double rate_
 

Private Attributes

std::map< uint, size_t > indexes_
 
size_t currentIndex_
 
std::vector< MutationPathpaths_
 
std::vector< size_t > ancestralStates_
 
std::shared_ptr< const ParametrizablePhyloTreetree_
 
std::vector< unsigned int > leavesId_
 
std::shared_ptr< const StateMapInterfacestatemap_
 

Detailed Description

Data structure to store the result of a DetailedSiteSimulator.

This structure inherits from the SequenceSimulationResult class, and add support for rate variation across sites.

Definition at line 185 of file DetailedSiteSimulator.h.

Constructor & Destructor Documentation

◆ RASiteSimulationResult()

bpp::RASiteSimulationResult::RASiteSimulationResult ( std::shared_ptr< const ParametrizablePhyloTree tree,
std::shared_ptr< const StateMapInterface stateMap,
size_t  ancestralStateIndex,
double  rate 
)
inline

Definition at line 192 of file DetailedSiteSimulator.h.

◆ ~RASiteSimulationResult()

virtual bpp::RASiteSimulationResult::~RASiteSimulationResult ( )
inlinevirtual

Definition at line 200 of file DetailedSiteSimulator.h.

Member Function Documentation

◆ addNode()

◆ alphabet()

const Alphabet& bpp::SiteSimulationResult::alphabet ( ) const
inlineinherited

◆ getAlphabet()

std::shared_ptr<const Alphabet> bpp::SiteSimulationResult::getAlphabet ( ) const
inlineinherited
Returns
The alphabet associated to this simulation.

Definition at line 81 of file DetailedSiteSimulator.h.

References bpp::SiteSimulationResult::statemap_.

◆ getAncestralState() [1/2]

virtual size_t bpp::SiteSimulationResult::getAncestralState ( size_t  i) const
inlinevirtualinherited

◆ getAncestralState() [2/2]

virtual size_t bpp::SiteSimulationResult::getAncestralState ( unsigned int  nodeId) const
inlinevirtualinherited

◆ getFinalStates()

virtual std::vector<size_t> bpp::SiteSimulationResult::getFinalStates ( ) const
inlinevirtualinherited

◆ getLeaveNames()

virtual std::vector<std::string> bpp::SiteSimulationResult::getLeaveNames ( ) const
inlinevirtualinherited
Returns
A vector with the leaves names.

Definition at line 165 of file DetailedSiteSimulator.h.

References bpp::SiteSimulationResult::leavesId_, and bpp::SiteSimulationResult::tree_.

◆ getMutationPath() [1/2]

virtual const MutationPath& bpp::SiteSimulationResult::getMutationPath ( size_t  i) const
inlinevirtualinherited

Definition at line 97 of file DetailedSiteSimulator.h.

References bpp::SiteSimulationResult::paths_.

◆ getMutationPath() [2/2]

virtual const MutationPath& bpp::SiteSimulationResult::getMutationPath ( unsigned int  nodeId) const
inlinevirtualinherited

◆ getRate()

virtual double bpp::RASiteSimulationResult::getRate ( ) const
inlinevirtual
Returns
The rate of this simulation.

Definition at line 206 of file DetailedSiteSimulator.h.

References rate_.

◆ getSite()

virtual std::unique_ptr<SiteInterface> bpp::SiteSimulationResult::getSite ( const TransitionModelInterface model) const
inlinevirtualinherited
Returns
The site corresponding to this simulation.

Definition at line 150 of file DetailedSiteSimulator.h.

References bpp::SiteSimulationResult::alphabet(), bpp::SiteSimulationResult::getFinalStates(), and bpp::SiteSimulationResult::statemap_.

◆ getSubstitutionCount() [1/4]

virtual size_t bpp::SiteSimulationResult::getSubstitutionCount ( size_t  i) const
inlinevirtualinherited

Definition at line 101 of file DetailedSiteSimulator.h.

References bpp::SiteSimulationResult::paths_.

◆ getSubstitutionCount() [2/4]

virtual void bpp::SiteSimulationResult::getSubstitutionCount ( size_t  i,
const SubstitutionRegisterInterface reg,
std::vector< double > &  counts 
) const
inlinevirtualinherited

Definition at line 103 of file DetailedSiteSimulator.h.

References bpp::SiteSimulationResult::paths_.

◆ getSubstitutionCount() [3/4]

virtual size_t bpp::SiteSimulationResult::getSubstitutionCount ( unsigned int  nodeId) const
inlinevirtualinherited

◆ getSubstitutionCount() [4/4]

virtual void bpp::SiteSimulationResult::getSubstitutionCount ( unsigned int  nodeId,
const SubstitutionRegisterInterface reg,
std::vector< double > &  counts 
) const
inlinevirtualinherited

◆ getSubstitutionVector()

virtual VVdouble bpp::SiteSimulationResult::getSubstitutionVector ( const SubstitutionRegisterInterface reg) const
inlinevirtualinherited

Member Data Documentation

◆ ancestralStates_

◆ currentIndex_

size_t bpp::SiteSimulationResult::currentIndex_
privateinherited

◆ indexes_

◆ leavesId_

std::vector<unsigned int> bpp::SiteSimulationResult::leavesId_
privateinherited

◆ paths_

◆ rate_

double bpp::RASiteSimulationResult::rate_
protected

Definition at line 189 of file DetailedSiteSimulator.h.

Referenced by getRate().

◆ statemap_

std::shared_ptr<const StateMapInterface> bpp::SiteSimulationResult::statemap_
privateinherited

◆ tree_

std::shared_ptr<const ParametrizablePhyloTree> bpp::SiteSimulationResult::tree_
privateinherited

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