bpp-seq-omics
2.4.1
|
Compute the frequency of site patterns for a quadruplet of species. More...
#include <Bpp/Seq/Io/Maf/MafStatistics.h>
Public Member Functions | |
FourSpeciesPatternCountsMafStatistics (const Alphabet *alphabet, const std::vector< std::string > &species) | |
FourSpeciesPatternCountsMafStatistics (const FourSpeciesPatternCountsMafStatistics &stats) | |
FourSpeciesPatternCountsMafStatistics & | operator= (const FourSpeciesPatternCountsMafStatistics &stats) |
virtual | ~FourSpeciesPatternCountsMafStatistics () |
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_ |
std::string | suffix_ |
Private Attributes | |
const Alphabet * | alphabet_ |
std::vector< unsigned int > | counts_ |
std::vector< std::string > | species_ |
bool | noSpeciesMeansAllSpecies_ |
Compute the frequency of site patterns for a quadruplet of species.
Only parsimony informative sites are categorized. Species: A B C D P1 1 1 0 0 P2 0 1 1 0 P3 1 0 1 0 Sites with more than two states are ignored, as well as sites containing gaps or unresolved characters.
Definition at line 563 of file MafStatistics.h.
|
inline |
Definition at line 572 of file MafStatistics.h.
References bpp::VectorTools::unique().
|
inline |
Definition at line 586 of file MafStatistics.h.
|
inlinevirtual |
Definition at line 601 of file MafStatistics.h.
|
virtual |
Implements bpp::MafStatistics.
Definition at line 265 of file MafStatistics.cpp.
References counts_, bpp::MafBlock::getNumberOfSites(), bpp::AbstractSpeciesSelectionMafStatistics::getSiteContainer_(), bpp::SiteTools::isComplete(), bpp::AbstractMafStatistics::result_, and bpp::MafStatisticsResult::setValue().
|
inlinevirtual |
Implements bpp::MafStatistics.
Definition at line 605 of file MafStatistics.h.
|
inlinevirtualinherited |
Implements bpp::MafStatistics.
Definition at line 241 of file MafStatistics.h.
References bpp::AbstractMafStatistics::result_.
|
inlinevirtual |
Implements bpp::MafStatistics.
Definition at line 604 of file MafStatistics.h.
|
protectedinherited |
Definition at line 68 of file MafStatistics.cpp.
References bpp::VectorSiteContainer::addSequence(), bpp::MafBlock::getAlignment(), bpp::AlignedSequenceContainer::getAlphabet(), bpp::MafBlock::getSequencesForSpecies(), and bpp::MafBlock::hasSequenceForSpecies().
Referenced by bpp::CharacterCountsMafStatistics::compute(), bpp::SiteFrequencySpectrumMafStatistics::compute(), compute(), bpp::SiteMafStatistics::compute(), and bpp::SequenceDiversityMafStatistics::compute().
|
virtual |
Implements bpp::MafStatistics.
Definition at line 255 of file MafStatistics.cpp.
|
inline |
Definition at line 593 of file MafStatistics.h.
|
private |
Definition at line 568 of file MafStatistics.h.
Referenced by operator=().
|
private |
Definition at line 569 of file MafStatistics.h.
Referenced by compute(), and operator=().
|
privateinherited |
Definition at line 382 of file MafStatistics.h.
|
protectedinherited |
Definition at line 234 of file MafStatistics.h.
Referenced by bpp::CharacterCountsMafStatistics::compute(), bpp::SiteFrequencySpectrumMafStatistics::compute(), compute(), bpp::SiteMafStatistics::compute(), bpp::PolymorphismMafStatistics::compute(), bpp::SequenceDiversityMafStatistics::compute(), and bpp::AbstractMafStatistics::getResult().
|
privateinherited |
Definition at line 381 of file MafStatistics.h.
|
protectedinherited |
Definition at line 385 of file MafStatistics.h.
Referenced by bpp::CharacterCountsMafStatistics::getFullName(), and bpp::CharacterCountsMafStatistics::getShortName().