bpp-popgen3
3.0.0
|
The MonolocusGenotypeTools static class. More...
#include <Bpp/PopGen/MonolocusGenotypeTools.h>
Static Public Member Functions | |
static std::unique_ptr< MonolocusGenotypeInterface > | buildMonolocusGenotypeByAlleleKey (const std::vector< size_t > alleleKeys) |
Build a proper MonolocusGenotype accordig to the number of alleles. More... | |
The MonolocusGenotypeTools static class.
This class provides tools for MonolocusGenotype manipulation or creation.
Definition at line 27 of file MonolocusGenotypeTools.h.
|
static |
Build a proper MonolocusGenotype accordig to the number of alleles.
Return a MonolocusGenotype build according to the number of allels. If one allele key, send a MonoAlleleMonolocusGenotype, if two allele keys, send a BiAlleleMonolocusGenotype, if more allele keys, send a MultiAlleleMonolocusGenotype.
alleleKeys | A vector containing thes allele keys to put in the MonolocusGenotype. |
Definition at line 15 of file MonolocusGenotypeTools.cpp.
Referenced by bpp::MultilocusGenotype::setMonolocusGenotypeByAlleleKey().