40 #ifndef BPP_SEQ_CONTAINER_ABSTRACTPROBABILISTICSEQUENCECONTAINER_H
41 #define BPP_SEQ_CONTAINER_ABSTRACTPROBABILISTICSEQUENCECONTAINER_H
45 #include "../ProbabilisticSequence.h"
116 std::string
toString(
const std::string& name)
const
137 virtual const std::string&
getName(
size_t sequenceIndex)
const
142 virtual std::string
toString(
size_t sequenceIndex)
const
Partial implementation of the OrderedSequenceContainer interface.
void setGeneralComments(const Comments &comments)
Set the comments of this container.
const Comments & getGeneralComments() const
Get the comments of this container.
virtual ~AbstractProbabilisticSequenceContainer()
AbstractProbabilisticSequenceContainer(const Alphabet *alpha)
This constructor initialize the alphabet pointer.
void setComments(const std::string &name, const Comments &comments)
Set the comments of a particular sequence.
virtual std::string toString(size_t sequenceIndex) const
virtual const Comments & getComments(size_t sequenceIndex) const
std::string toString(const std::string &name) const
Output to string.
virtual const ProbabilisticSequence & getSequence(const std::string &name) const =0
Retrieve a probabilistic sequence object from the container.
virtual void setComments(size_t sequenceIndex, const Comments &comments)=0
virtual void addSequence(const Sequence &sequence, bool checkName=true)=0
Add a basic sequence to the container, through conversion to a probabilistic sequence.
virtual const std::string & getName(size_t sequenceIndex) const
Get the name of a particular row of the alignement (aka sequence).
const Comments & getComments(const std::string &name) const
Get comments of a particular sequence.
virtual void addSequence(const ProbabilisticSequence &sequence, bool checkName=true)=0
Add a probabilistic sequence to the container.
void deleteGeneralComments()
Delete the comments associated to this container.
AbstractProbabilisticSequenceContainer(const AbstractProbabilisticSequenceContainer &sc)
AbstractProbabilisticSequenceContainer & operator=(const AbstractProbabilisticSequenceContainer &sc)
virtual const ProbabilisticSequence & getSequence(std::size_t i) const =0
Partial implementation of the OrderedSequenceContainer interface.
AbstractValuesContainer & operator=(const AbstractValuesContainer &sc)
virtual const std::string & getName() const =0
Get the name of this sequence.
virtual const Comments & getComments() const =0
Get the comments.
virtual std::string toString() const =0
Convert the list as a string.
virtual size_t getSequencePosition(const std::string &name) const =0
Get the position of a sequence in sequence container from its name.
virtual void setComments(const std::string &name, const Comments &comments)=0
Set the comments of a particular sequence.
The ProbabilisticSequenceContainer interface.
The probabilistic sequence interface.
This alphabet is used to deal NumericAlphabet.
std::vector< std::string > Comments
Declaration of Comments type.