bpp-seq-omics
2.4.1
|
Counts number of polymorphic / fixed sites in two populations. More...
#include <Bpp/Seq/Io/Maf/MafStatistics.h>
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 MafStatisticsResult & | getResult () 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_ |
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:
Definition at line 656 of file MafStatistics.h.
|
inline |
Definition at line 661 of file MafStatistics.h.
|
inlinevirtual |
Definition at line 669 of file MafStatistics.h.
|
virtual |
Implements bpp::MafStatistics.
Definition at line 388 of file MafStatistics.cpp.
References bpp::MafBlock::getNumberOfSites(), getPatterns_(), bpp::AbstractSpeciesMultipleSelectionMafStatistics::getSiteContainers_(), bpp::AbstractMafStatistics::result_, and bpp::MafStatisticsResult::setValue().
|
inlinevirtual |
Implements bpp::MafStatistics.
Definition at line 673 of file MafStatistics.h.
|
staticprivate |
Definition at line 370 of file MafStatistics.cpp.
References bpp::SiteContainer::getNumberOfSites(), bpp::SiteContainer::getSite(), bpp::SiteTools::isComplete(), and bpp::SiteTools::isConstant().
Referenced by compute().
|
inlinevirtualinherited |
Implements bpp::MafStatistics.
Definition at line 241 of file MafStatistics.h.
References bpp::AbstractMafStatistics::result_.
|
inlinevirtual |
Implements bpp::MafStatistics.
Definition at line 672 of file MafStatistics.h.
|
protectedinherited |
Definition at line 97 of file MafStatistics.cpp.
References bpp::VectorSiteContainer::addSequence(), bpp::MafBlock::getAlignment(), bpp::AlignedSequenceContainer::getAlphabet(), bpp::MafBlock::getSequencesForSpecies(), bpp::MafBlock::hasSequenceForSpecies(), and bpp::AbstractSpeciesMultipleSelectionMafStatistics::species_.
Referenced by compute().
|
virtual |
Implements bpp::MafStatistics.
Definition at line 354 of file MafStatistics.cpp.
|
protectedinherited |
Definition at line 234 of file MafStatistics.h.
Referenced by bpp::CharacterCountsMafStatistics::compute(), bpp::SiteFrequencySpectrumMafStatistics::compute(), bpp::FourSpeciesPatternCountsMafStatistics::compute(), bpp::SiteMafStatistics::compute(), compute(), bpp::SequenceDiversityMafStatistics::compute(), and bpp::AbstractMafStatistics::getResult().
|
privateinherited |
Definition at line 412 of file MafStatistics.h.
Referenced by bpp::AbstractSpeciesMultipleSelectionMafStatistics::AbstractSpeciesMultipleSelectionMafStatistics(), and bpp::AbstractSpeciesMultipleSelectionMafStatistics::getSiteContainers_().