40 #ifndef _ANALYZEDLOCI_H_ 41 #define _ANALYZEDLOCI_H_ 47 #include <Bpp/Exceptions.h> 94 throw (IndexOutOfBoundsException);
165 throw (IndexOutOfBoundsException);
169 #endif // _ANALYZEDLOCI_H_ size_t getNumberOfLoci() const
Get the number of loci.
size_t getLocusInfoPosition(const std::string &locus_name) const
Get the position of a LocusInfo.
void addAlleleInfoByLocusName(const std::string &locus_name, const AlleleInfo &allele)
Add an AlleleInfo to a LocusInfo by LocusInfo name.
const LocusInfo & getLocusInfoByName(const std::string &locus_name) const
Get a LocusInfo by name.
void addAlleleInfoByLocusPosition(size_t locus_position, const AlleleInfo &allele)
Add an AlleleInfo to a LocusInfo by its position.
The BadIdentifierException class.
unsigned int getPloidyByLocusPosition(size_t locus_position) const
Get the ploidy of a locus by its position.
const LocusInfo & getLocusInfoAtPosition(size_t locus_position) const
Get a LocusInfo by its position.
unsigned int getPloidyByLocusName(const std::string &locus_name) const
Get the ploidy of a locus by name.
std::vector< size_t > getNumberOfAlleles() const
Get the number of alleles at each locus.
void setLocusInfo(size_t locus_position, const LocusInfo &locus)
Set a LocusInfo.
std::vector< LocusInfo * > loci_
The AlleleInfo interface.
AnalyzedLoci(size_t number_of_loci)
Build a void AnalyzedLoci with a specific number of loci.
~AnalyzedLoci()
Destroy the AnalyzedLoci.
The LocusNotFoundException class.