40 #ifndef _MULTISEQINDIVIDUAL_H_ 41 #define _MULTISEQINDIVIDUAL_H_ 48 #include <Bpp/Clonable.h> 49 #include <Bpp/Exceptions.h> 50 #include <Bpp/Graphics/Point2D.h> 53 #include <Bpp/Seq/Sequence.h> 54 #include <Bpp/Seq/SequenceExceptions.h> 55 #include <Bpp/Seq/Container/VectorSequenceContainer.h> 85 std::map<std::string, VectorSequenceContainer*>
sequences_;
112 const Point2D<double>& coord,
114 const unsigned short sex);
141 void setId(
const std::string
id);
148 std::string
getId()
const;
155 void setSex(
const unsigned short sex);
162 unsigned short getSex()
const;
177 const Date*
getDate()
const throw (NullPointerException);
189 void setCoord(const Point2D<
double>& coord);
197 void setCoord(const
double x, const
double y);
205 const Point2D<
double>*
getCoord() const throw (NullPointerException);
220 void setX(const
double x) throw (NullPointerException);
230 void setY(const
double y) throw (NullPointerException);
238 double getX() const throw (NullPointerException);
246 double getY() const throw (NullPointerException);
295 const throw (Exception);
305 const Sequence&
getSequence(const
std::
string&
id, const
size_t i)
306 const throw (Exception);
368 #endif // _MULTISEQINDIVIDUAL_H_ MultiSeqIndividual & operator=(const MultiSeqIndividual &ind)
The MultiSeqIndividual copy operator.
std::map< std::string, VectorSequenceContainer * > sequences_
size_t getNumberOfSequences(const std::string &id) const
Get the number of sequences in a sequence set.
unsigned short getSex() const
Get the sex of the MultiSeqIndividual.
void setX(const double x)
Set the X coordinate of the MultiSeqIndividual.
bool hasLocality() const
Tell if this MultiSeqIndividual has a locality.
bool hasSequences() const
Tell if the MultiSeqIndividual has some sequences.
size_t getNumberOfSequenceSet() const
Count the number of sequece set.
Sequence * removeSequence(const std::string &id, const std::string &name)
Remove a named sequence from a named sequence set.
const Sequence & getSequence(const std::string &id, const std::string &name) const
Get a named sequence from a named sequence set.
bool hasGenotype() const
Tell if the MultiSeqIndividual has a MultilocusGenotype.
void addGenotype(const MultilocusGenotype &genotype)
Add a genotype.
The MultilocusGenotype class.
void setId(const std::string id)
Set the id of the MultiSeqIndividual.
bool hasDate() const
Tell if this MultiSeqIndividual has a date.
double getX() const
Get the X coordinate of the MultiSeqIndividual.
const Locality< double > * getLocality() const
Get the locality of the MultiSeqIndividual.
virtual ~MultiSeqIndividual()
Destroy an MultiSeqIndividual.
std::string getId() const
Get the id of the MultiSeqIndividual.
const MultilocusGenotype * getGenotype() const
Get the genotype.
MultilocusGenotype * genotype_
void setY(const double y)
Set the Y coordinate of th MultiSeqIndividual.
void setCoord(const Point2D< double > &coord)
Set the coodinates of the MultiSeqIndividual.
double getY() const
Get the Y coordinate of the MultiSeqIndividual.
Point2D< double > * coord_
MultiSeqIndividual()
Build a void new MultiSeqIndividual.
const Locality< double > * locality_
void setLocality(const Locality< double > *locality)
Set the locality of the MultiSeqIndividual.
const VectorSequenceContainer * getVectorSequenceContainer(const std::string &id) const
Get a pointer to the VectorSequenceContainer at a named locus.
bool hasCoord() const
Tell if this MultiSeqIndividual has coordinates.
void deleteSequence(const std::string &id, const std::string &name)
Delete a named sequence from a named sequence set.
*** UNUSED CLASS ***The MultiSeqIndividual class.
void setDate(const Date &date)
Set the date of the MultiSeqIndividual.
void setSex(const unsigned short sex)
Set the sex of the MultiSeqIndividual.
std::vector< std::string > getSequencesKeys() const
Get the sequence set ids.
const Date * getDate() const
Get the date of the MultiSeqIndividual.
void addSequence(const std::string &id, const Sequence &sequence)
Add a sequence in a named sequence set.
const Point2D< double > * getCoord() const
Get the coordinates of the Induvidual.