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

Compute the base frequencies of a maf block. More...

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

+ Inheritance diagram for bpp::CharacterCountsMafStatistics:
+ Collaboration diagram for bpp::CharacterCountsMafStatistics:

Public Member Functions

 CharacterCountsMafStatistics (const Alphabet *alphabet, const std::vector< std::string > &species, const std::string suffix)
 
 CharacterCountsMafStatistics (const CharacterCountsMafStatistics &stats)
 
CharacterCountsMafStatisticsoperator= (const CharacterCountsMafStatistics &stats)
 
virtual ~CharacterCountsMafStatistics ()
 
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< std::string > species_
 
bool noSpeciesMeansAllSpecies_
 

Detailed Description

Compute the base frequencies of a maf block.

For each block, provides the following numbers (with their corresponding tags):

  • A: total counts of A
  • C: total counts of C
  • G: total counts of G
  • T [or U]: total counts of T/U
  • Gap: total counts of gaps
  • Unresolved: total counts of unresolved characters The sum of all characters should equal BlockSize x BlockLength

Definition at line 436 of file MafStatistics.h.

Constructor & Destructor Documentation

◆ CharacterCountsMafStatistics() [1/2]

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

Definition at line 444 of file MafStatistics.h.

◆ CharacterCountsMafStatistics() [2/2]

bpp::CharacterCountsMafStatistics::CharacterCountsMafStatistics ( const CharacterCountsMafStatistics stats)
inline

Definition at line 449 of file MafStatistics.h.

◆ ~CharacterCountsMafStatistics()

virtual bpp::CharacterCountsMafStatistics::~CharacterCountsMafStatistics ( )
inlinevirtual

Definition at line 461 of file MafStatistics.h.

Member Function Documentation

◆ compute()

◆ getFullName()

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

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

◆ getSiteContainer_()

◆ getSupportedTags()

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

Implements bpp::MafStatistics.

Definition at line 115 of file MafStatistics.cpp.

References alphabet_, bpp::Alphabet::getSize(), and bpp::Alphabet::intToChar().

◆ operator=()

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

Definition at line 454 of file MafStatistics.h.

References alphabet_.

Member Data Documentation

◆ alphabet_

const Alphabet* bpp::CharacterCountsMafStatistics::alphabet_
private

Definition at line 441 of file MafStatistics.h.

Referenced by compute(), getSupportedTags(), 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

Definition at line 385 of file MafStatistics.h.

Referenced by getFullName(), and getShortName().


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