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

Provide estimates of sequence diversity. More...

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

+ Inheritance diagram for bpp::SequenceDiversityMafStatistics:
+ Collaboration diagram for bpp::SequenceDiversityMafStatistics:

Public Member Functions

 SequenceDiversityMafStatistics (const std::vector< std::string > &ingroup)
 
virtual ~SequenceDiversityMafStatistics ()
 
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_
 

Static Private Member Functions

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

Private Attributes

std::vector< std::string > species_
 
bool noSpeciesMeansAllSpecies_
 

Detailed Description

Provide estimates of sequence diversity.

  • Number of segregating sites
  • Watterson's theta (per site)
  • Tajima's pi (average pairwise differences)
  • Tajima's D

Only fully resolved sites are analyzed (no gap, no generic character).

Definition at line 693 of file MafStatistics.h.

Constructor & Destructor Documentation

◆ SequenceDiversityMafStatistics()

bpp::SequenceDiversityMafStatistics::SequenceDiversityMafStatistics ( const std::vector< std::string > &  ingroup)
inline

Definition at line 698 of file MafStatistics.h.

◆ ~SequenceDiversityMafStatistics()

virtual bpp::SequenceDiversityMafStatistics::~SequenceDiversityMafStatistics ( )
inlinevirtual

Definition at line 703 of file MafStatistics.h.

Member Function Documentation

◆ compute()

◆ getFullName()

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

Implements bpp::MafStatistics.

Definition at line 707 of file MafStatistics.h.

◆ getPatterns_()

static std::vector<int> bpp::SequenceDiversityMafStatistics::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::SequenceDiversityMafStatistics::getShortName ( ) const
inlinevirtual

Implements bpp::MafStatistics.

Definition at line 706 of file MafStatistics.h.

◆ getSiteContainer_()

◆ getSupportedTags()

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

Implements bpp::MafStatistics.

Definition at line 471 of file MafStatistics.cpp.

Member Data Documentation

◆ 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: