bpp-seq-omics  2.2.0
bpp::SiteFrequencySpectrumMafStatistics Class Reference

Compute the Site Frequency Spectrum of a maf block. More...

#include <Bpp/Seq/Io/Maf/MafStatistics.h>

+ Inheritance diagram for bpp::SiteFrequencySpectrumMafStatistics:
+ Collaboration diagram for bpp::SiteFrequencySpectrumMafStatistics:

Classes

class  Categorizer
 

Public Member Functions

 SiteFrequencySpectrumMafStatistics (const Alphabet *alphabet, const std::vector< double > &bounds, const std::vector< std::string > &ingroup, const std::string outgroup="")
 
 SiteFrequencySpectrumMafStatistics (const SiteFrequencySpectrumMafStatistics &stats)
 
SiteFrequencySpectrumMafStatisticsoperator= (const SiteFrequencySpectrumMafStatistics &stats)
 
virtual ~SiteFrequencySpectrumMafStatistics ()
 
std::string getShortName () const
 
std::string getFullName () const
 
void compute (const MafBlock &block)
 
std::vector< std::string > getSupportedTags () const
 
const MafStatisticsResultgetResult () const
 

Protected Member Functions

SiteContainer * getSiteContainer_ (const MafBlock &block)
 

Protected Attributes

MafStatisticsResult result_
 

Private Attributes

const Alphabet * alphabet_
 
Categorizer categorizer_
 
std::vector< unsigned int > counts_
 
std::string outgroup_
 

Detailed Description

Compute the Site Frequency Spectrum of a maf block.

If no outgroup is provided, the ancestral states are considered as unknown and the unfolded spectrum is computed, so that 10000 and 11110 sites are treated equally.

Definition at line 453 of file MafStatistics.h.

Constructor & Destructor Documentation

◆ SiteFrequencySpectrumMafStatistics() [1/2]

bpp::SiteFrequencySpectrumMafStatistics::SiteFrequencySpectrumMafStatistics ( const Alphabet *  alphabet,
const std::vector< double > &  bounds,
const std::vector< std::string > &  ingroup,
const std::string  outgroup = "" 
)
inline

Definition at line 490 of file MafStatistics.h.

◆ SiteFrequencySpectrumMafStatistics() [2/2]

bpp::SiteFrequencySpectrumMafStatistics::SiteFrequencySpectrumMafStatistics ( const SiteFrequencySpectrumMafStatistics stats)
inline

Definition at line 499 of file MafStatistics.h.

◆ ~SiteFrequencySpectrumMafStatistics()

virtual bpp::SiteFrequencySpectrumMafStatistics::~SiteFrequencySpectrumMafStatistics ( )
inlinevirtual

Definition at line 518 of file MafStatistics.h.

Member Function Documentation

◆ compute()

◆ getFullName()

std::string bpp::SiteFrequencySpectrumMafStatistics::getFullName ( ) const
inlinevirtual

Implements bpp::MafStatistics.

Definition at line 522 of file MafStatistics.h.

◆ getResult()

const MafStatisticsResult& bpp::AbstractMafStatistics::getResult ( ) const
inlinevirtualinherited

Implements bpp::MafStatistics.

Definition at line 239 of file MafStatistics.h.

References bpp::AbstractMafStatistics::result_.

◆ getShortName()

std::string bpp::SiteFrequencySpectrumMafStatistics::getShortName ( ) const
inlinevirtual

Implements bpp::MafStatistics.

Definition at line 521 of file MafStatistics.h.

◆ getSiteContainer_()

SiteContainer * AbstractSpeciesSelectionMafStatistics::getSiteContainer_ ( const MafBlock block)
protectedinherited

◆ getSupportedTags()

vector< string > SiteFrequencySpectrumMafStatistics::getSupportedTags ( ) const
virtual
Returns
A vector with all available tags.

Implements bpp::MafStatistics.

Definition at line 138 of file MafStatistics.cpp.

References categorizer_, and bpp::SiteFrequencySpectrumMafStatistics::Categorizer::getNumberOfCategories().

◆ operator=()

SiteFrequencySpectrumMafStatistics& bpp::SiteFrequencySpectrumMafStatistics::operator= ( const SiteFrequencySpectrumMafStatistics stats)
inline

Definition at line 508 of file MafStatistics.h.

References alphabet_, categorizer_, counts_, and outgroup_.

Member Data Documentation

◆ alphabet_

const Alphabet* bpp::SiteFrequencySpectrumMafStatistics::alphabet_
private

Definition at line 484 of file MafStatistics.h.

Referenced by compute(), and operator=().

◆ categorizer_

Categorizer bpp::SiteFrequencySpectrumMafStatistics::categorizer_
private

Definition at line 485 of file MafStatistics.h.

Referenced by compute(), getSupportedTags(), and operator=().

◆ counts_

std::vector<unsigned int> bpp::SiteFrequencySpectrumMafStatistics::counts_
private

Definition at line 486 of file MafStatistics.h.

Referenced by compute(), and operator=().

◆ outgroup_

std::string bpp::SiteFrequencySpectrumMafStatistics::outgroup_
private

Definition at line 487 of file MafStatistics.h.

Referenced by compute(), and operator=().

◆ result_


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