bpp-seq-omics  2.4.1
bpp::FourSpeciesPatternCountsMafStatistics Class Reference

Compute the frequency of site patterns for a quadruplet of species. More...

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

+ Inheritance diagram for bpp::FourSpeciesPatternCountsMafStatistics:
+ Collaboration diagram for bpp::FourSpeciesPatternCountsMafStatistics:

Public Member Functions

 FourSpeciesPatternCountsMafStatistics (const Alphabet *alphabet, const std::vector< std::string > &species)
 
 FourSpeciesPatternCountsMafStatistics (const FourSpeciesPatternCountsMafStatistics &stats)
 
FourSpeciesPatternCountsMafStatisticsoperator= (const FourSpeciesPatternCountsMafStatistics &stats)
 
virtual ~FourSpeciesPatternCountsMafStatistics ()
 
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

SiteContainergetSiteContainer_ (const MafBlock &block)
 

Protected Attributes

MafStatisticsResult result_
 
std::string suffix_
 

Private Attributes

const Alphabetalphabet_
 
std::vector< unsigned int > counts_
 
std::vector< std::string > species_
 
bool noSpeciesMeansAllSpecies_
 

Detailed Description

Compute the frequency of site patterns for a quadruplet of species.

Only parsimony informative sites are categorized. Species: A B C D P1 1 1 0 0 P2 0 1 1 0 P3 1 0 1 0 Sites with more than two states are ignored, as well as sites containing gaps or unresolved characters.

Definition at line 563 of file MafStatistics.h.

Constructor & Destructor Documentation

◆ FourSpeciesPatternCountsMafStatistics() [1/2]

bpp::FourSpeciesPatternCountsMafStatistics::FourSpeciesPatternCountsMafStatistics ( const Alphabet alphabet,
const std::vector< std::string > &  species 
)
inline

Definition at line 572 of file MafStatistics.h.

References bpp::VectorTools::unique().

◆ FourSpeciesPatternCountsMafStatistics() [2/2]

bpp::FourSpeciesPatternCountsMafStatistics::FourSpeciesPatternCountsMafStatistics ( const FourSpeciesPatternCountsMafStatistics stats)
inline

Definition at line 586 of file MafStatistics.h.

◆ ~FourSpeciesPatternCountsMafStatistics()

virtual bpp::FourSpeciesPatternCountsMafStatistics::~FourSpeciesPatternCountsMafStatistics ( )
inlinevirtual

Definition at line 601 of file MafStatistics.h.

Member Function Documentation

◆ compute()

◆ getFullName()

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

Implements bpp::MafStatistics.

Definition at line 605 of file MafStatistics.h.

◆ getResult()

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

Implements bpp::MafStatistics.

Definition at line 241 of file MafStatistics.h.

References bpp::AbstractMafStatistics::result_.

◆ getShortName()

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

Implements bpp::MafStatistics.

Definition at line 604 of file MafStatistics.h.

◆ getSiteContainer_()

◆ getSupportedTags()

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

Implements bpp::MafStatistics.

Definition at line 255 of file MafStatistics.cpp.

◆ operator=()

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

Definition at line 593 of file MafStatistics.h.

References alphabet_, and counts_.

Member Data Documentation

◆ alphabet_

const Alphabet* bpp::FourSpeciesPatternCountsMafStatistics::alphabet_
private

Definition at line 568 of file MafStatistics.h.

Referenced by operator=().

◆ counts_

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

Definition at line 569 of file MafStatistics.h.

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

◆ noSpeciesMeansAllSpecies_

bool bpp::AbstractSpeciesSelectionMafStatistics::noSpeciesMeansAllSpecies_
privateinherited

Definition at line 382 of file MafStatistics.h.

◆ result_

◆ species_

std::vector<std::string> bpp::AbstractSpeciesSelectionMafStatistics::species_
privateinherited

Definition at line 381 of file MafStatistics.h.

◆ suffix_

std::string bpp::AbstractSpeciesSelectionMafStatistics::suffix_
protectedinherited

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