bpp-popgen
3.0.0
|
The MonolocusGenotype virtual class. More...
#include <Bpp/PopGen/MonolocusGenotype.h>
Public Member Functions | |
virtual | ~MonolocusGenotype () |
Destroy a MonolocusGenotype. More... | |
virtual std::vector< size_t > | getAlleleIndex () const =0 |
Get the alleles' index. More... | |
virtual Clonable * | clone () const=0 |
The MonolocusGenotype virtual class.
A MonolocusGenotype containes 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 59 of file MonolocusGenotype.h.
|
inlinevirtual |
Destroy a MonolocusGenotype.
Definition at line 67 of file MonolocusGenotype.h.
|
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::permutAlleles(), bpp::PolymorphismMultiGContainerTools::permutIntraGroupAlleles(), bpp::DarwinVarSingle::write(), and bpp::PopgenlibIO::write().