bpp-popgen3
3.0.0
|
The MonolocusGenotype virtual class. More...
#include <Bpp/PopGen/MonolocusGenotype.h>
Public Member Functions | |
MonolocusGenotypeInterface * | clone () const override=0 |
virtual std::vector< size_t > | getAlleleIndex () const =0 |
Get the alleles' index. More... | |
The MonolocusGenotype virtual class.
A MonolocusGenotype contains the Alleles' keys defined in a Locus object. This keys are returned as size_tegers. This class is an interface for all monolocus genotypes.
Definition at line 24 of file MonolocusGenotype.h.
|
overridepure virtual |
Implements bpp::Clonable.
Implemented in bpp::MultiAlleleMonolocusGenotype, bpp::MonoAlleleMonolocusGenotype, and bpp::BiAlleleMonolocusGenotype.
Referenced by bpp::MultilocusGenotype::MultilocusGenotype(), bpp::PolymorphismMultiGContainerTools::permuteIntraGroupMonoG(), bpp::PolymorphismMultiGContainerTools::permuteMonoG(), and bpp::MultilocusGenotype::setMonolocusGenotype().
|
pure virtual |
Get the alleles' index.
The alleles' index are the position of the AlleleInfo in a LocusInfo object. If no LocusInfo is used, the index are just numbers to identify the alleles.
The size of the vector corresponds to the number of alleles at this locus.
Implemented in bpp::MultiAlleleMonolocusGenotype, bpp::MonoAlleleMonolocusGenotype, and bpp::BiAlleleMonolocusGenotype.
Referenced by bpp::MultilocusGenotypeStatistics::countBiAllelicForGroups(), bpp::MultilocusGenotypeStatistics::countHeterozygousForGroups(), bpp::MultilocusGenotypeStatistics::getAllelesMapForGroups(), bpp::MultilocusGenotypeStatistics::getHeterozygousFrqForGroups(), bpp::PolymorphismMultiGContainerTools::permuteAlleles(), bpp::PolymorphismMultiGContainerTools::permuteIntraGroupAlleles(), and bpp::PopgenlibIO::write().