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

Counts number of polymorphic / fixed sites in two populations. More...

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

+ Inheritance diagram for bpp::PolymorphismMafStatistics:
+ Collaboration diagram for bpp::PolymorphismMafStatistics:

Public Member Functions

 PolymorphismMafStatistics (const std::vector< std::vector< std::string > > &species)
 
virtual ~PolymorphismMafStatistics ()
 
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

std::vector< SiteContainer * > getSiteContainers_ (const MafBlock &block)
 

Protected Attributes

MafStatisticsResult result_
 

Static Private Member Functions

static std::vector< int > getPatterns_ (const SiteContainer &sites)
 

Private Attributes

std::vector< std::vector< std::string > > species_
 

Detailed Description

Counts number of polymorphic / fixed sites in two populations.

The two populations are defined as two distinct sets of species. The following counts are computed and returned:

  • P: number of sites polymorphic in both populations
  • F: number of sites fixed in both populations
  • FF: number of sites fixed in both populations, but with distinct states
  • PF / FP: number of sites polymorphic in one species and fixed in the other.
  • X: unresolved (because of gap or generic character)
  • FX / PX / XF / XP: unresolved in one population

Definition at line 656 of file MafStatistics.h.

Constructor & Destructor Documentation

◆ PolymorphismMafStatistics()

bpp::PolymorphismMafStatistics::PolymorphismMafStatistics ( const std::vector< std::vector< std::string > > &  species)
inline

Definition at line 661 of file MafStatistics.h.

◆ ~PolymorphismMafStatistics()

virtual bpp::PolymorphismMafStatistics::~PolymorphismMafStatistics ( )
inlinevirtual

Definition at line 669 of file MafStatistics.h.

Member Function Documentation

◆ compute()

◆ getFullName()

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

Implements bpp::MafStatistics.

Definition at line 673 of file MafStatistics.h.

◆ getPatterns_()

vector< int > PolymorphismMafStatistics::getPatterns_ ( const SiteContainer sites)
staticprivate

◆ 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::PolymorphismMafStatistics::getShortName ( ) const
inlinevirtual

Implements bpp::MafStatistics.

Definition at line 672 of file MafStatistics.h.

◆ getSiteContainers_()

◆ getSupportedTags()

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

Implements bpp::MafStatistics.

Definition at line 354 of file MafStatistics.cpp.

Member Data Documentation

◆ result_

◆ species_

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

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