bpp-popgen
3.0.0
|
The MonolocusGenotypeTools static class. More...
#include <Bpp/PopGen/MonolocusGenotypeTools.h>
Static Public Member Functions | |
static std::unique_ptr< MonolocusGenotype > | buildMonolocusGenotypeByAlleleKey (const std::vector< size_t > allele_keys) |
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 61 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.
allele_keys | A vector containing thes allele keys to put in the MonolocusGenotype. |
Definition at line 50 of file MonolocusGenotypeTools.cpp.
Referenced by bpp::MultilocusGenotype::setMonolocusGenotypeByAlleleKey().