bpp-phyl3
3.0.0
|
Tools for sites and sequences simulation. More...
#include <Bpp/Phyl/Simulation/SequenceSimulationTools.h>
Public Member Functions | |
SequenceSimulationTools () | |
~SequenceSimulationTools () | |
Static Public Member Functions | |
static std::unique_ptr< SiteContainerInterface > | simulateSites (const SequenceSimulatorInterface &simulator, const std::vector< double > &rates) |
Simulate a set of sites knowing their rate. More... | |
static std::unique_ptr< SiteContainerInterface > | simulateSites (const SequenceSimulatorInterface &simulator, const std::vector< double > &rates, const std::vector< size_t > &states) |
Simulate a set of sites knowing their rate and ancestral state. More... | |
static std::unique_ptr< SiteContainerInterface > | simulateSites (const SequenceSimulatorInterface &simulator, const std::vector< size_t > &states) |
Simulate a set of sites knowing ancestral state. More... | |
Tools for sites and sequences simulation.
Definition at line 22 of file SequenceSimulationTools.h.
|
inline |
Definition at line 25 of file SequenceSimulationTools.h.
|
inline |
Definition at line 26 of file SequenceSimulationTools.h.
|
static |
Simulate a set of sites knowing their rate.
This method is rather slow. consider using a discrete rate distribution and a SequenceSimulator, which is really faster. This method should be used only for continuous rate distribution, or as estimated from posterior rates for instance.
simulator | A SiteSimulator object to use to simulate sites. |
rates | the rates to use, one for each site to simulate. |
Definition at line 17 of file SequenceSimulationTools.cpp.
References bpp::SequenceSimulatorInterface::getAlphabet(), bpp::SequenceSimulatorInterface::getSequenceNames(), bpp::SiteSimulatorInterface::simulateSite(), and bpp::SequenceSimulatorInterface::siteSimulator().
|
static |
Simulate a set of sites knowing their rate and ancestral state.
This method is rather slow. consider using a discrete rate distribution and a SequenceSimulator, which is really faster. This method should be used only for continuous rate distribution, or as estimated from posterior rates for instance.
simulator | A SiteSimulator object to use to simulate sites. |
rates | the rates to use, one for each site to simulate. |
states | the ancestral states to use, one for each site to simulate. |
Definition at line 35 of file SequenceSimulationTools.cpp.
References bpp::SequenceSimulatorInterface::getAlphabet(), bpp::SequenceSimulatorInterface::getSequenceNames(), bpp::SiteSimulatorInterface::simulateSite(), and bpp::SequenceSimulatorInterface::siteSimulator().
|
static |
Simulate a set of sites knowing ancestral state.
simulator | A SiteSimulator object to use to simulate sites. |
states | the ancestral states to use, one for each site to simulate. |
Definition at line 57 of file SequenceSimulationTools.cpp.
References bpp::SequenceSimulatorInterface::getAlphabet(), bpp::SequenceSimulatorInterface::getSequenceNames(), bpp::SiteSimulatorInterface::simulateSite(), and bpp::SequenceSimulatorInterface::siteSimulator().