bpp-seq-omics
2.2.0
|
Compute the Site Frequency Spectrum of a maf block. More...
#include <Bpp/Seq/Io/Maf/MafStatistics.h>
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) | |
SiteFrequencySpectrumMafStatistics & | operator= (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 MafStatisticsResult & | getResult () 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_ |
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.
|
inline |
Definition at line 490 of file MafStatistics.h.
|
inline |
Definition at line 499 of file MafStatistics.h.
|
inlinevirtual |
Definition at line 518 of file MafStatistics.h.
|
virtual |
Implements bpp::MafStatistics.
Definition at line 150 of file MafStatistics.cpp.
References alphabet_, categorizer_, counts_, bpp::SiteFrequencySpectrumMafStatistics::Categorizer::getCategory(), bpp::SiteFrequencySpectrumMafStatistics::Categorizer::getNumberOfCategories(), bpp::MafBlock::getNumberOfSequences(), bpp::MafBlock::getSequenceForSpecies(), bpp::AbstractSpeciesSelectionMafStatistics::getSiteContainer_(), bpp::MafBlock::hasSequenceForSpecies(), outgroup_, bpp::AbstractMafStatistics::result_, and bpp::MafStatisticsResult::setValue().
|
inlinevirtual |
Implements bpp::MafStatistics.
Definition at line 522 of file MafStatistics.h.
|
inlinevirtualinherited |
Implements bpp::MafStatistics.
Definition at line 239 of file MafStatistics.h.
References bpp::AbstractMafStatistics::result_.
|
inlinevirtual |
Implements bpp::MafStatistics.
Definition at line 521 of file MafStatistics.h.
|
protectedinherited |
Definition at line 95 of file MafStatistics.cpp.
References bpp::MafBlock::getAlignment(), bpp::MafBlock::getSequencesForSpecies(), and bpp::MafBlock::hasSequenceForSpecies().
Referenced by compute(), bpp::FourSpeciesPatternCountsMafStatistics::compute(), bpp::SiteMafStatistics::compute(), and bpp::SequenceDiversityMafStatistics::compute().
|
virtual |
Implements bpp::MafStatistics.
Definition at line 138 of file MafStatistics.cpp.
References categorizer_, and bpp::SiteFrequencySpectrumMafStatistics::Categorizer::getNumberOfCategories().
|
inline |
Definition at line 508 of file MafStatistics.h.
References alphabet_, categorizer_, counts_, and outgroup_.
|
private |
Definition at line 484 of file MafStatistics.h.
Referenced by compute(), and operator=().
|
private |
Definition at line 485 of file MafStatistics.h.
Referenced by compute(), getSupportedTags(), and operator=().
|
private |
Definition at line 486 of file MafStatistics.h.
Referenced by compute(), and operator=().
|
private |
Definition at line 487 of file MafStatistics.h.
Referenced by compute(), and operator=().
|
protectedinherited |