bpp-phyl3
3.0.0
|
Rate Distribution I/O in BppO format. More...
#include <Bpp/Phyl/Io/BppORateDistributionFormat.h>
Public Member Functions | |
BppORateDistributionFormat (bool allowConstant) | |
Build a new BppORateDistributionFormat object. More... | |
virtual | ~BppORateDistributionFormat () |
std::unique_ptr< DiscreteDistributionInterface > | readDiscreteDistribution (const std::string &distDescription, bool parseArguments) |
void | writeDiscreteDistribution (const DiscreteDistributionInterface &dist, OutputStream &out, std::map< std::string, std::string > &globalAliases, std::vector< std::string > &writtenNames) const |
const std::string | getFormatName () const |
const std::string | getFormatDescription () const |
const std::map< std::string, std::string > & | getUnparsedArguments () const |
virtual const std::string | getDataType () const |
Protected Member Functions | |
void | initialize_ (DiscreteDistributionInterface &rDist) |
Protected Attributes | |
bool | verbose_ |
std::map< std::string, std::string > | unparsedArguments_ |
Private Attributes | |
bool | allowConstant_ |
Rate Distribution I/O in BppO format.
Creates a new discrete distribution object according to distribution description syntax (see the Bio++ Program Suite manual for a detailed description of this syntax).
Rate distributions are normalized and have a mean of 1, so that branch lengths are measured in mean number of substitutions per site.
Definition at line 25 of file BppORateDistributionFormat.h.
|
inline |
Build a new BppORateDistributionFormat object.
allowConstant | Is constant distribution allowed. |
Definition at line 37 of file BppORateDistributionFormat.h.
|
inlinevirtual |
Definition at line 42 of file BppORateDistributionFormat.h.
|
virtual |
Reimplemented from bpp::BppODiscreteDistributionFormat.
Definition at line 26 of file BppORateDistributionFormat.cpp.
References bpp::ApplicationTools::displayMessage(), bpp::ApplicationTools::displayResult(), bpp::BppODiscreteDistributionFormat::getUnparsedArguments(), bpp::StringTokenizer::hasMoreToken(), bpp::TextTools::isEmpty(), bpp::StringTokenizer::nextToken(), bpp::KeyvalTools::parseProcedure(), readDiscreteDistribution(), bpp::TextTools::toDouble(), bpp::TextTools::toInt(), and bpp::TextTools::toString().
Referenced by bpp::PhylogeneticsApplicationTools::getRateDistribution(), bpp::PhylogeneticsApplicationTools::getRateDistributions(), readDiscreteDistribution(), and bpp::BppOSubstitutionModelFormat::readSubstitutionModel().
|
virtual |
Reimplemented from bpp::BppODiscreteDistributionFormat.
Definition at line 209 of file BppORateDistributionFormat.cpp.
References bpp::DiscreteDistributionInterface::getIndependentParameters(), bpp::DiscreteDistributionInterface::getName(), bpp::SimpleDiscreteDistribution::getNumberOfCategories(), bpp::DiscreteDistributionInterface::getNumberOfCategories(), bpp::MixtureOfDiscreteDistributions::getNumberOfDistributions(), bpp::ParameterList::getParameterNames(), bpp::TextTools::toString(), bpp::InvariantMixedDiscreteDistribution::variableSubDistribution(), and bpp::BppOParametrizableFormat::write().
Referenced by bpp::PhylogeneticsApplicationTools::printParameters().
|
private |
Definition at line 29 of file BppORateDistributionFormat.h.