bpp-seq3
3.0.0
|
The VectorSequenceContainer class. More...
#include <Bpp/Seq/Container/VectorSequenceContainer.h>
Public Member Functions | |
VectorSequenceContainer (const std::vector< std::shared_ptr< Sequence >> &vs, const Alphabet *alpha) | |
Build a container with shared Sequences. More... | |
VectorSequenceContainer (const Alphabet *alpha) | |
Build an empty container that will contain sequences of a particular alphabet. More... | |
VectorSequenceContainer & | operator= (const VectorSequenceContainer &vsc) |
Assign from a VectorSequenceContainer. More... | |
VectorSequenceContainer & | operator= (const OrderedSequenceContainer &osc) |
Copy from an OrderedSequenceContainer. More... | |
VectorSequenceContainer & | operator= (const SequenceContainer &osc) |
Copy from a SequenceContainer. More... | |
void | clear () |
Delete all objects in the container. More... | |
std::string | toString (const std::string &name) const |
Convert a particular sequence to a string. More... | |
const Comments & | getComments (const std::string &name) const |
Get comments of a particular sequence. More... | |
const Comments & | getComments () const |
Get the comments. More... | |
void | setComments (const std::string &name, const Comments &comments) |
Set the comments of a particular sequence. More... | |
void | setComments (const Comments &comments) |
Set the comments. More... | |
virtual const Alphabet * | getAlphabet () const =0 |
Get container's alphabet. More... | |
virtual double | getStateValueAt (size_t siteIndex, const std::string &sequenceName, int state) const=0 |
get value of a state in a position More... | |
virtual const Comments & | getGeneralComments () const =0 |
Get the comments of this container. More... | |
virtual void | setGeneralComments (const Comments &comments)=0 |
Set the comments of this container. More... | |
virtual void | deleteGeneralComments ()=0 |
Delete the comments associated to this container. More... | |
void | clearComments () |
size_t | getSize () const |
Get the number of objects in the container. More... | |
void | setSize (size_t size) |
void | changeName (const std::string &okey, const std::string &nkey) |
change the key of an object. More... | |
bool | isAvailableName (std::string objectName) const |
Return if the name is in the map keys and the mapped object is nullptr or empty. More... | |
bool | isAvailablePosition (size_t objectIndex) const |
void | nullify () |
Nullify all elements. More... | |
Copy contructors: | |
VectorSequenceContainer (const VectorSequenceContainer &vsc) | |
Copy from a VectorSequenceContainer. More... | |
VectorSequenceContainer (const OrderedSequenceContainer &osc) | |
Copy from an OrderedSequenceContainer. More... | |
VectorSequenceContainer (const SequenceContainer &osc) | |
Copy from a SequenceContainer. More... | |
The Clonable interface. | |
VectorSequenceContainer * | clone () const |
The SequenceContainer interface. | |
bool | hasSequence (const std::string &name) const |
check if there is a Sequence with this name in the map (same as hasSequenceByKey). More... | |
bool | hasSequenceByName (const std::string &name) const |
bool | hasSequenceByKey (const std::string &name) const |
check if there is a Sequence with this key in the map. More... | |
const Sequence & | getSequence (const std::string &name) const |
get the Sequence with this name in the map (same as getSequenceByKey). More... | |
const Sequence & | getSequenceByName (const std::string &name) const |
const Sequence & | getSequenceByKey (const std::string &name) const |
check if there is a Sequence with this key in the map. More... | |
void | setSequence (const std::string &name, const Sequence &sequence, bool checkName=true) |
Copy a Sequence to the given key in the map. More... | |
std::shared_ptr< Sequence > | removeSequence (const std::string &name) |
get the Sequence with this name in the map (same as removeSequenceByKey). More... | |
std::shared_ptr< Sequence > | removeSequenceByKey (const std::string &name) |
remove & return a Sequence with this key from the map. More... | |
std::shared_ptr< Sequence > | removeSequenceByName (const std::string &name) |
remove & return a Sequence with this name. More... | |
void | deleteSequence (const std::string &name) |
delete the Sequence with this name in the map (same as deleteSequenceByKey). More... | |
void | deleteSequence (size_t pos) |
void | deleteSequenceByKey (const std::string &name) |
remove & return a Sequence with this key from the map. More... | |
void | deleteSequenceByName (const std::string &name) |
remove & return a Sequence with this name. More... | |
std::vector< std::string > | getKeys () const |
size_t | getNumberOfSequences () const |
Get the number of sequences in the container. More... | |
std::vector< std::string > | getSequenceNames () const |
get Sequences proper names (may be different from the keys used to store them in the map), in the order of the vector. More... | |
std::vector< std::string > | getSequenceKeys () const |
get Sequences keys (ie the strings used to store them in the map, may be different from their proper names), in the order of the vector. More... | |
void | setSequenceNames (const std::vector< std::string > &names, bool checkNames=true) |
set the proper names of the Sequences, in the order of the vector. More... | |
VectorSequenceContainer * | createEmptyContainer () const |
Return a copy of this container, but with no data inside. More... | |
int & | valueAt (const std::string &sequenceName, size_t elementIndex) |
Get the value of an element, given sequenceName in the map and the elementIndex position. More... | |
const int & | valueAt (const std::string &key, size_t elementIndex) const |
Get the value at a Position in a Sequence with given sequenceName in the map (may be not the actual name of the Sequence.. More... | |
int & | operator() (const std::string &sequenceName, size_t elementIndex) |
Element access operator. More... | |
const int & | operator() (const std::string &sequenceName, size_t elementIndex) const |
Element access operator. More... | |
int & | valueAt (size_t sequenceIndex, size_t elementIndex) |
Element access operator. More... | |
const int & | valueAt (size_t sequenceIndex, size_t elementIndex) const |
Element access operator. More... | |
int & | operator() (size_t sequenceIndex, size_t elementIndex) |
Element access operator. More... | |
const int & | operator() (size_t sequenceIndex, size_t elementIndex) const |
Element access operator. More... | |
The OrderedSequenceContainer interface. | |
size_t | getSequencePosition (const std::string &name) const |
Get the position of a sequence in sequence container from its name. More... | |
const Sequence & | getSequence (size_t sequenceIndex) const |
Retrieve a sequence object from the container. More... | |
void | setSequence (size_t sequenceIndex, const Sequence &sequence, bool checkName=true) |
Replace a sequence in the container. More... | |
std::shared_ptr< Sequence > | removeSequence (size_t sequenceIndex) |
Extract (and remove) a sequence from the container. More... | |
void | setComments (size_t sequenceIndex, const Comments &comments) |
Add sequence to this container. | |
virtual void | addSequence (const Sequence &sequence, bool checkName=true) |
Add a sequence at the end of the container. More... | |
virtual void | addSequence (const Sequence &sequence, const std::string &key) |
Add a sequence with a given key at the end of the container. More... | |
virtual void | addSequence (const std::shared_ptr< Sequence > sequence, bool checkName=true) |
Add a sequence at the end of the container. More... | |
virtual void | addSequence (const Sequence &sequence, size_t sequenceIndex, bool checkName=true) |
Add a sequence to the container at a particular position. More... | |
virtual void | addSequence (const Sequence &sequence, size_t sequenceIndex, const std::string &key) |
Add a sequence to the container at a particular position with a given key. More... | |
From the OrderedSequenceContainer interface | |
virtual std::string | toString (size_t sequenceIndex) const |
virtual const Comments & | getComments (size_t sequenceIndex) const |
virtual const std::string & | getName (size_t sequenceIndex) const |
Get the name of a particular row of the alignement (aka sequence). More... | |
SequenceContainer methods. | |
virtual std::string | toString (size_t sequenceIndex) const=0 |
virtual const Comments & | getComments (size_t sequenceIndex) const=0 |
virtual void | setComments (size_t sequenceIndex, const Comments &comments)=0 |
virtual const Sequence & | getSequence (const std::string &name) const=0 |
Retrieve a sequence object from the container. More... | |
virtual void | setSequence (const std::string &name, const Sequence &sequence, bool checkName)=0 |
Replace a sequence in the container. More... | |
virtual std::shared_ptr< Sequence > | removeSequence (const std::string &name)=0 |
Extract (and remove) a sequence from the container. More... | |
From the SequencedValuesContainer interface | |
const Alphabet * | getAlphabet () const |
Get container's alphabet. More... | |
const Comments & | getGeneralComments () const |
Get the comments of this container. More... | |
void | setGeneralComments (const Comments &comments) |
Set the comments of this container. More... | |
void | deleteGeneralComments () |
Delete the comments associated to this container. More... | |
Protected Member Functions | |
size_t | getNumberOfObjects () const |
size_t | getObjectPosition (const std::string &name) const |
Link between position & name. More... | |
std::string | getObjectName (size_t objectIndex) const |
const std::shared_ptr< Sequence > | getObject (size_t objectIndex) const |
Retrieve an object from the container. Set as protected since they will be public under T specific names. More... | |
std::shared_ptr< Sequence > | getObject (size_t objectIndex) |
const std::shared_ptr< Sequence > | getObject (const std::string &name) const |
Get a object. More... | |
std::shared_ptr< Sequence > | getObject (const std::string &name) |
bool | hasObject (const std::string &name) const |
Check if a object with a given name is present in the container. More... | |
std::vector< std::string > | getObjectNames () const |
void | setObjectNames (const std::vector< std::string > &names) |
void | setObjectName (size_t pos, const std::string &name) |
void | addObject (std::shared_ptr< Sequence > object, size_t objectIndex, const std::string &name, bool check=false) |
virtual void | addObject (std::shared_ptr< T > object, size_t objectIndex, const std::string &name, bool check=false)=0 |
void | addObject (std::shared_ptr< T > object, const std::string &name, bool checkName=false) |
Set a object. More... | |
void | addObject (std::shared_ptr< T > object, size_t objectIndex, bool checkPosition=false) |
Add an object. More... | |
void | insertObject (std::shared_ptr< Sequence > object, size_t objectIndex, const std::string &name) |
virtual void | insertObject (std::shared_ptr< T > object, size_t objectIndex, const std::string &name)=0 |
void | insertObject (std::shared_ptr< T > object, size_t objectIndex) |
Insert an object. More... | |
void | appendObject (std::shared_ptr< Sequence > object, const std::string &name, bool check=true) |
void | appendObject (std::shared_ptr< T > object) |
std::shared_ptr< Sequence > | removeObject (size_t objectIndex) |
Extract and remove a object from the container. More... | |
std::shared_ptr< Sequence > | removeObject (const std::string &name) |
Remove and returns a object. More... | |
void | deleteObject (size_t objectIndex) |
Delete an object from the container. More... | |
void | deleteObject (const std::string &name) |
Remove a object. More... | |
void | addObject_ (std::shared_ptr< Sequence > object, size_t objectIndex, const std::string &name, bool check=false) const |
void | addObject_ (std::shared_ptr< T > object, const std::string &name, bool checkName=false) const |
void | addObject_ (std::shared_ptr< T > object, size_t objectIndex, bool checkPosition=false) const |
void | deleteObjects (size_t objectIndex, size_t length) |
std::shared_ptr< T > | getObject_ (size_t objectIndex) const |
AbstractSequenceContainer methods. | |
Sequence & | getSequence_ (size_t i) |
Sequence & | getSequence_ (const std::string &key) |
getSequence with given key More... | |
SequencedValuesContainer methods. | |
double | getStateValueAt (size_t siteIndex, const std::string &sequenceName, int state) const |
get Value at given state with given key in the Sequence Map More... | |
double | operator() (size_t siteIndex, const std::string &sequenceName, int state) const |
OrderedValuesContainer methods. | |
double | getStateValueAt (size_t siteIndex, size_t sequenceIndex, int state) const |
double | operator() (size_t siteIndex, size_t sequenceIndex, int state) const |
Protected Attributes | |
const Alphabet * | alphabet_ |
The container's alphabet. More... | |
Comments | comments_ |
std::vector< std::shared_ptr< T > > | positions_ |
Private Member Functions | |
virtual void | setSize (size_t size) |
Private Attributes | |
std::vector< std::string > | vNames_ |
std::map< std::string, size_t > | mNames_ |
std::map< std::string, std::shared_ptr< T > > | mObjects_ |
The VectorSequenceContainer class.
This is the simplest implementation of the OrderedSequenceContainer interface. std::shared_ptr<Sequence> are stored in a std::vector, as well as in a std::map.
Definition at line 67 of file VectorSequenceContainer.h.
VectorSequenceContainer::VectorSequenceContainer | ( | const std::vector< std::shared_ptr< Sequence >> & | vs, |
const Alphabet * | alpha | ||
) |
Build a container with shared Sequences.
The keys of the map are the names of the Sequences
Class constructors:
Definition at line 51 of file VectorSequenceContainer.cpp.
References addSequence().
Referenced by clone(), and createEmptyContainer().
|
inline |
Build an empty container that will contain sequences of a particular alphabet.
alpha | The alphabet of the container. |
Definition at line 88 of file VectorSequenceContainer.h.
VectorSequenceContainer::VectorSequenceContainer | ( | const VectorSequenceContainer & | vsc | ) |
Copy from a VectorSequenceContainer.
vsc | The VectorSequenceContainer to copy into this container. |
Copy constructors:
Definition at line 65 of file VectorSequenceContainer.cpp.
References addSequence(), getNumberOfSequences(), and getSequence().
VectorSequenceContainer::VectorSequenceContainer | ( | const OrderedSequenceContainer & | osc | ) |
Copy from an OrderedSequenceContainer.
osc | The OrderedSequenceContainer to copy into this container. |
The keys of the map are the names of the Sequences
Definition at line 77 of file VectorSequenceContainer.cpp.
References addSequence(), bpp::SequencedValuesContainer::getNumberOfSequences(), and bpp::OrderedSequenceContainer::getSequence().
VectorSequenceContainer::VectorSequenceContainer | ( | const SequenceContainer & | osc | ) |
Copy from a SequenceContainer.
osc | The SequenceContainer to copy into this container. |
The keys of the map are the names of the Sequences
Definition at line 89 of file VectorSequenceContainer.cpp.
References addSequence(), bpp::SequencedValuesContainer::getGeneralComments(), bpp::SequenceContainer::getSequence(), bpp::SequencedValuesContainer::getSequenceNames(), and bpp::AbstractValuesContainer::setGeneralComments().
|
inlineprotectedinherited |
Definition at line 226 of file VectorMappedContainer.h.
|
inlineprotectedinherited |
Set a object.
name | The key of the object. |
object | The new object that will be associated to the key. |
checkName | Tell is the object name must be checked. |
Definition at line 140 of file MappedNamedContainer.h.
References bpp::MappedNamedContainer< T >::hasObject(), and bpp::MappedNamedContainer< T >::mObjects_.
Referenced by bpp::VectorMappedContainer< T >::addObject(), bpp::VectorMappedContainer< T >::appendObject(), and bpp::VectorMappedContainer< T >::insertObject().
|
inlineprotectedinherited |
Add an object.
object | The object to add. |
objectIndex | The new position of the object |
checkPosition | Look if the position is empty. |
Definition at line 192 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::getSize(), and bpp::VectorPositionedContainer< T >::positions_.
Referenced by bpp::VectorMappedContainer< T >::addObject(), bpp::AlignedSequenceContainer::getSite(), bpp::CompressedVectorSiteContainer::setSite(), and bpp::VectorSiteContainer::setSite().
|
protectedpure virtualinherited |
Implemented in bpp::VectorMappedContainer< T >.
|
inlineprotectedinherited |
Definition at line 298 of file VectorMappedContainer.h.
|
inlineprotectedinherited |
Definition at line 234 of file MappedNamedContainer.h.
References bpp::MappedNamedContainer< T >::hasObject(), and bpp::MappedNamedContainer< T >::mObjects_.
Referenced by bpp::VectorMappedContainer< T >::addObject_().
|
inlineprotectedinherited |
Definition at line 258 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::positions_.
Referenced by bpp::VectorMappedContainer< T >::addObject_(), and bpp::AlignedSequenceContainer::getSite().
|
inlinevirtual |
Add a sequence at the end of the container.
The sequence is copied into the container. If checkNames is set to true, the method check if the name of the sequence is already used in the container, and sends an exception if it is the case. Otherwise, do not check the name: the method is hence faster, but use it at your own risks!
sequence | The sequence to add. |
checkName | Tell if the method must check the name of the sequence before adding it. |
Implements bpp::SequenceContainer.
Reimplemented in bpp::AlignedSequenceContainer.
Definition at line 442 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::appendObject(), bpp::Sequence::clone(), bpp::AbstractValuesContainer::getAlphabet(), bpp::CruxSymbolList::getAlphabet(), bpp::Alphabet::getAlphabetType(), and bpp::CoreSequence::getName().
Referenced by bpp::AlignedSequenceContainer::addSequence(), bpp::SequenceContainerTools::createContainerOfSpecifiedSize(), bpp::SequenceContainerTools::getCodonPosition(), operator=(), and VectorSequenceContainer().
|
inlinevirtual |
Add a sequence with a given key at the end of the container.
The sequence is copied into the container. If checkNames is set to true, the method check if the name of the sequence is already used in the container, and sends an exception if it is the case. Otherwise, do not check the name: the method is hence faster, but use it at your own risks!
sequence | The sequence to add. |
key | the key in the map |
Definition at line 463 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::appendObject(), bpp::Sequence::clone(), bpp::AbstractValuesContainer::getAlphabet(), bpp::CruxSymbolList::getAlphabet(), and bpp::Alphabet::getAlphabetType().
|
inlinevirtual |
Add a sequence to the container at a particular position.
The sequence is copied into the container. If checkName is set to true, the method check if the name of the sequence is already used in the container, and sends an exception if it is the case. Otherwise, do not check the name: the method is hence faster, but use it at your own risks!
sequence | The sequence to add. |
sequenceIndex | The position where to insert the new sequence. All the following sequences will be pushed. |
checkName | Tell if the method must check the name of the sequence before adding it. |
Exception | If the sequence couldn't be added to the container. |
Reimplemented in bpp::AlignedSequenceContainer.
Definition at line 510 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::addObject(), bpp::Sequence::clone(), and bpp::CoreSequence::getName().
|
inlinevirtual |
Add a sequence to the container at a particular position with a given key.
The sequence is copied into the container. If checkName is set to true, the method check if the name of the sequence is already used in the container, and sends an exception if it is the case. Otherwise, do not check the name: the method is hence faster, but use it at your own risks!
sequence | The sequence to add. |
key | the key in the map |
sequenceIndex | The position where to insert the new sequence. All the following sequences will be pushed. |
Exception | If the sequence couldn't be added to the container. |
Definition at line 531 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::addObject(), and bpp::Sequence::clone().
|
inlinevirtual |
Add a sequence at the end of the container.
The sequence is shared with the container. If checkNames is set to true, the method check if the name of the sequence is already used in the container, and sends an exception if it is the case. Otherwise, do not check the name: the method is hence faster, but use it at your own risks!
sequence | The sequence to add. |
checkName | Tell if the method must check the name of the sequence before adding it. |
Exception | If the sequence couldn't be added to the container. |
Definition at line 486 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::appendObject(), and bpp::AbstractValuesContainer::getAlphabet().
|
inlineprotectedinherited |
Definition at line 250 of file VectorMappedContainer.h.
|
inlineprotectedinherited |
Definition at line 246 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::positions_.
Referenced by bpp::CompressedVectorSiteContainer::addSite(), bpp::AlignedSequenceContainer::addSite(), bpp::VectorSiteContainer::addSite(), bpp::VectorProbabilisticSiteContainer::addSite(), bpp::VectorMappedContainer< T >::appendObject(), and bpp::CompressedVectorSiteContainer::setSite().
|
inlineinherited |
change the key of an object.
okey | The present key of the object. |
nkey | The next key of the object. |
Definition at line 199 of file MappedNamedContainer.h.
References bpp::MappedNamedContainer< T >::hasObject(), and bpp::MappedNamedContainer< T >::mObjects_.
Referenced by bpp::VectorMappedContainer< T >::setObjectName(), bpp::VectorMappedContainer< T >::setObjectNames(), bpp::VectorProbabilisticSiteContainer::setSequence(), and bpp::VectorSiteContainer::setSequence().
|
inlinevirtual |
Delete all objects in the container.
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 158 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< T >::clear().
Referenced by bpp::AlignedSequenceContainer::clear(), and operator=().
|
inlineinherited |
Definition at line 102 of file Commentable.h.
References bpp::Commentable::comments_.
Referenced by bpp::BasicProbabilisticSequence::clearComments(), bpp::BasicSequence::clearComments(), bpp::SequenceWithAnnotation::clearComments(), bpp::SequenceWithQuality::clearComments(), bpp::AbstractProbabilisticSequenceContainer::deleteGeneralComments(), and bpp::AbstractValuesContainer::deleteGeneralComments().
|
inlinevirtual |
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 169 of file VectorSequenceContainer.h.
References VectorSequenceContainer().
|
virtual |
Return a copy of this container, but with no data inside.
This method creates a new SequencedValuesContainer objet. The class of this container depends on the derivative class.
Implements bpp::SequencedValuesContainer.
Definition at line 233 of file VectorSequenceContainer.cpp.
References bpp::AbstractValuesContainer::getAlphabet(), bpp::AbstractValuesContainer::getGeneralComments(), bpp::AbstractValuesContainer::setGeneralComments(), and VectorSequenceContainer().
|
inlinevirtualinherited |
Delete the comments associated to this container.
Implements bpp::SequencedValuesContainer.
Definition at line 115 of file AbstractValuesContainer.h.
References bpp::Commentable::clearComments().
|
pure virtualinherited |
Delete the comments associated to this container.
Implemented in bpp::AbstractValuesContainer, and bpp::AbstractProbabilisticSequenceContainer.
|
inlineprotectedvirtualinherited |
Remove a object.
name | The key of the object. |
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 293 of file VectorMappedContainer.h.
|
inlineprotectedvirtualinherited |
Delete an object from the container.
objectIndex | The index of the object in the container. |
Reimplemented from bpp::VectorPositionedContainer< T >.
Definition at line 273 of file VectorMappedContainer.h.
|
inlineprotectedinherited |
Definition at line 238 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::getSize(), and bpp::VectorPositionedContainer< T >::positions_.
Referenced by bpp::AlignedSequenceContainer::deleteSites(), bpp::VectorProbabilisticSiteContainer::deleteSites(), and bpp::VectorSiteContainer::deleteSites().
|
inline |
delete the Sequence with this name in the map (same as deleteSequenceByKey).
Definition at line 268 of file VectorSequenceContainer.h.
References deleteSequenceByKey().
Referenced by deleteSequenceByKey(), and deleteSequenceByName().
|
inline |
Definition at line 273 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::deleteObject().
|
inline |
remove & return a Sequence with this key from the map.
Definition at line 283 of file VectorSequenceContainer.h.
References deleteSequence(), and getSequencePosition().
Referenced by deleteSequence().
void VectorSequenceContainer::deleteSequenceByName | ( | const std::string & | name | ) |
remove & return a Sequence with this name.
Definition at line 190 of file VectorSequenceContainer.cpp.
References deleteSequence(), bpp::CoreSequence::getName(), bpp::OrderedSequenceContainer::getSequence(), and bpp::VectorMappedContainer< Sequence >::getSize().
|
inlinevirtualinherited |
Get container's alphabet.
Implements bpp::SequencedValuesContainer.
Definition at line 99 of file AbstractValuesContainer.h.
References bpp::AbstractValuesContainer::alphabet_.
Referenced by bpp::VectorProbabilisticSequenceContainer::addSequence(), bpp::VectorProbabilisticSiteContainer::addSequence(), addSequence(), bpp::VectorSiteContainer::addSequence(), bpp::CompressedVectorSiteContainer::addSite(), bpp::AlignedSequenceContainer::addSite(), bpp::VectorSiteContainer::addSite(), bpp::VectorProbabilisticSiteContainer::addSite(), bpp::Pasta::appendSequencesFromStream(), bpp::AlignedSequenceContainer::createEmptyContainer(), bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::VectorProbabilisticSequenceContainer::createEmptyContainer(), bpp::VectorProbabilisticSiteContainer::createEmptyContainer(), createEmptyContainer(), bpp::VectorSiteContainer::createEmptyContainer(), bpp::CompressedVectorSiteContainer::getSequence(), bpp::VectorSiteContainer::getSequence(), bpp::VectorProbabilisticSiteContainer::getSequence(), bpp::AlignedSequenceContainer::getSite(), bpp::CompressedVectorSiteContainer::getStateValueAt(), bpp::VectorProbabilisticSiteContainer::getStateValueAt(), bpp::VectorSiteContainer::getStateValueAt(), bpp::VectorProbabilisticSequenceContainer::getStateValueAt(), getStateValueAt(), bpp::CompressedVectorSiteContainer::operator()(), bpp::VectorProbabilisticSiteContainer::operator()(), bpp::VectorSiteContainer::operator()(), bpp::VectorProbabilisticSequenceContainer::operator()(), operator()(), bpp::VectorProbabilisticSiteContainer::realloc(), bpp::VectorSiteContainer::realloc(), bpp::CompressedVectorSiteContainer::removeSite(), bpp::CompressedVectorSiteContainer::setComments(), bpp::VectorProbabilisticSiteContainer::setSequence(), bpp::VectorProbabilisticSequenceContainer::setSequence(), bpp::VectorSiteContainer::setSequence(), setSequence(), bpp::AlignedSequenceContainer::setSite(), bpp::CompressedVectorSiteContainer::setSite(), and bpp::VectorSiteContainer::setSite().
|
pure virtualinherited |
Get container's alphabet.
Implemented in bpp::AbstractValuesContainer.
Referenced by bpp::Clustal::appendAlignmentFromStream(), bpp::DCSE::appendAlignmentFromStream(), bpp::NexusIOSequence::appendAlignmentFromStream(), bpp::Fasta::appendSequencesFromStream(), bpp::GenBank::appendSequencesFromStream(), bpp::Mase::appendSequencesFromStream(), bpp::SiteContainerTools::changeGapsToUnknownCharacters(), bpp::SiteContainerTools::changeUnresolvedCharactersToGaps(), bpp::SequenceContainerTools::convertAlphabet(), bpp::SequenceContainerTools::getCodonPosition(), bpp::SiteContainerTools::getCompleteSites(), bpp::SiteContainerTools::getConsensus(), bpp::SequenceContainerTools::getFrequencies(), bpp::SiteContainerTools::getSelectedPositions(), bpp::MaseTools::getSelectedSequences(), bpp::SiteContainerTools::getSelectedSites(), bpp::SiteContainerTools::getSequencePositions(), bpp::SequenceApplicationTools::getSitesToAnalyse(), bpp::SiteContainerTools::getSitesWithoutGaps(), bpp::SequenceContainerTools::merge(), bpp::SiteContainerTools::merge(), bpp::AbstractSequenceContainer::operator=(), bpp::Phylip::readInterleaved(), bpp::Phylip::readSequential(), bpp::SiteContainerTools::removeGapOnlySites(), bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites(), bpp::SiteContainerTools::removeGapSites(), bpp::SiteContainerTools::removeStopCodonSites(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::SiteContainerTools::sampleSites(), bpp::Phylip::writeInterleaved(), and bpp::Phylip::writeSequential().
|
inlineinherited |
Get the comments.
Definition at line 93 of file Commentable.h.
References bpp::Commentable::comments_.
Referenced by bpp::AbstractCoreSequence::getComments(), bpp::SequenceWithAnnotation::getComments(), bpp::SequenceWithQuality::getComments(), bpp::AbstractProbabilisticSequenceContainer::getGeneralComments(), bpp::AbstractValuesContainer::getGeneralComments(), and bpp::VectorProbabilisticSiteContainer::getSequence().
|
inlinevirtualinherited |
Get comments of a particular sequence.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::SequencedValuesContainer.
Definition at line 111 of file AbstractSequenceContainer.h.
References bpp::CoreSequence::getComments(), and bpp::OrderedSequenceContainer::getSequence().
|
inlinevirtualinherited |
Implements bpp::AbstractValuesContainer.
Definition at line 137 of file AbstractSequenceContainer.h.
References bpp::CoreSequence::getComments(), and bpp::OrderedSequenceContainer::getSequence().
|
inherited |
Referenced by bpp::CompressedVectorSiteContainer::addSite(), bpp::VectorSiteContainer::addSite(), bpp::VectorSiteContainer::getSequence(), bpp::CompressedVectorSiteContainer::removeSite(), bpp::VectorSiteContainer::setSequence(), bpp::CompressedVectorSiteContainer::setSite(), and bpp::VectorSiteContainer::setSite().
|
inlinevirtualinherited |
Get the comments of this container.
Implements bpp::SequencedValuesContainer.
Definition at line 101 of file AbstractValuesContainer.h.
References bpp::Commentable::getComments().
Referenced by bpp::AlignedSequenceContainer::createEmptyContainer(), bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::VectorProbabilisticSequenceContainer::createEmptyContainer(), createEmptyContainer(), and bpp::VectorSiteContainer::createEmptyContainer().
|
pure virtualinherited |
Get the comments of this container.
Implemented in bpp::AbstractValuesContainer, and bpp::AbstractProbabilisticSequenceContainer.
Referenced by bpp::AlignedSequenceContainer::AlignedSequenceContainer(), bpp::Mase::appendSequencesFromStream(), bpp::MaseTools::getSelectedSequences(), bpp::SiteContainerTools::getSelectedSites(), bpp::MaseTools::getSelectedSites(), bpp::AbstractSequenceContainer::operator=(), VectorSequenceContainer(), bpp::Stockholm::writeAlignment(), bpp::Fasta::writeSequences(), and bpp::Mase::writeSequences().
|
inline |
Definition at line 297 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getObjectNames().
|
inlinevirtualinherited |
Get the name of a particular row of the alignement (aka sequence).
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::OrderedValuesContainer.
Definition at line 127 of file AbstractSequenceContainer.h.
References bpp::CoreSequence::getName(), and bpp::OrderedSequenceContainer::getSequence().
Referenced by getSequenceNames(), and hasSequenceByName().
|
inlineprotectedinherited |
Definition at line 144 of file VectorMappedContainer.h.
|
inlinevirtual |
Get the number of sequences in the container.
Implements bpp::SequencedValuesContainer.
Definition at line 299 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getSize().
Referenced by bpp::AlignedSequenceContainer::addSequence(), bpp::AlignedSequenceContainer::addSite(), bpp::AlignedSequenceContainer::deleteSite(), bpp::AlignedSequenceContainer::deleteSites(), bpp::AlignedSequenceContainer::getSite(), getStateValueAt(), bpp::AlignedSequenceContainer::removeSite(), bpp::AlignedSequenceContainer::setSequence(), setSequenceNames(), bpp::AlignedSequenceContainer::setSite(), and VectorSequenceContainer().
|
inlineprotectedvirtualinherited |
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 188 of file VectorMappedContainer.h.
|
inlineprotectedvirtualinherited |
Get a object.
name | The key of the object to retrieve. |
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 183 of file VectorMappedContainer.h.
|
inlineprotectedvirtualinherited |
Reimplemented from bpp::VectorPositionedContainer< T >.
Definition at line 172 of file VectorMappedContainer.h.
|
inlineprotectedvirtualinherited |
Retrieve an object from the container. Set as protected since they will be public under T specific names.
objectIndex | The position of the object. |
Reimplemented from bpp::VectorPositionedContainer< T >.
Definition at line 167 of file VectorMappedContainer.h.
|
inlineprotectedinherited |
Definition at line 251 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::positions_.
|
inlineprotectedvirtualinherited |
Implements bpp::PositionedNamedContainer< T >.
Definition at line 158 of file VectorMappedContainer.h.
|
inlineprotectedvirtualinherited |
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 198 of file VectorMappedContainer.h.
|
inlineprotectedvirtualinherited |
Link between position & name.
Implements bpp::PositionedNamedContainer< T >.
Definition at line 149 of file VectorMappedContainer.h.
|
inlinevirtual |
get the Sequence with this name in the map (same as getSequenceByKey).
Implements bpp::SequenceContainer.
Definition at line 207 of file VectorSequenceContainer.h.
References getSequenceByKey().
Referenced by VectorSequenceContainer().
|
inherited |
Retrieve a sequence object from the container.
name | The name of the sequence. |
Referenced by bpp::AlignedSequenceContainer::AlignedSequenceContainer(), deleteSequenceByName(), bpp::AbstractSequenceContainer::getComments(), bpp::AbstractSequenceContainer::getName(), bpp::CompressedVectorSiteContainer::getSequence(), bpp::VectorSiteContainer::getSequence(), getSequenceByName(), getSequenceNames(), bpp::AlignedSequenceContainer::getSite(), getStateValueAt(), hasSequenceByName(), operator()(), bpp::VectorSiteContainer::removeSequence(), removeSequenceByName(), bpp::AbstractSequenceContainer::toString(), and valueAt().
|
inlinevirtual |
Retrieve a sequence object from the container.
sequenceIndex | The position of the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 397 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getObject().
|
inlineprotected |
getSequence with given key
Definition at line 553 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getObject().
|
inlineprotected |
Definition at line 542 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getObject().
Referenced by bpp::AlignedSequenceContainer::addSite(), bpp::AlignedSequenceContainer::deleteSite(), bpp::AlignedSequenceContainer::deleteSites(), operator()(), bpp::AlignedSequenceContainer::removeSite(), setComments(), setSequenceNames(), bpp::AlignedSequenceContainer::setSite(), and valueAt().
|
inline |
check if there is a Sequence with this key in the map.
Definition at line 219 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getObject().
Referenced by getSequence(), and valueAt().
const Sequence & VectorSequenceContainer::getSequenceByName | ( | const std::string & | name | ) | const |
Definition at line 156 of file VectorSequenceContainer.cpp.
References bpp::CoreSequence::getName(), bpp::OrderedSequenceContainer::getSequence(), and bpp::VectorMappedContainer< Sequence >::getSize().
|
inline |
get Sequences keys (ie the strings used to store them in the map, may be different from their proper names), in the order of the vector.
Definition at line 316 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getObjectNames().
|
virtual |
get Sequences proper names (may be different from the keys used to store them in the map), in the order of the vector.
Implements bpp::SequencedValuesContainer.
Definition at line 168 of file VectorSequenceContainer.cpp.
References bpp::AbstractSequenceContainer::getName(), bpp::OrderedSequenceContainer::getSequence(), and bpp::VectorMappedContainer< Sequence >::getSize().
|
inlinevirtual |
Get the position of a sequence in sequence container from its name.
name | The name of the sequence. |
SequenceNotFoundException | If no sequence with name 'name' could be found. |
Implements bpp::OrderedValuesContainer.
Definition at line 392 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::getObjectPosition().
Referenced by deleteSequenceByKey(), removeSequenceByKey(), and setSequence().
|
inlinevirtualinherited |
Get the number of objects in the container.
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 133 of file VectorMappedContainer.h.
|
inlineprotectedvirtual |
get Value at given state with given key in the Sequence Map
Implements bpp::SequencedValuesContainer.
Definition at line 571 of file VectorSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence(), and bpp::CruxSymbolList::getStateValueAt().
|
inherited |
get value of a state in a position
siteIndex | index of the site |
sequenceName | name of the sequence in the container |
state | state in the alphabet |
|
inlineprotectedvirtual |
Implements bpp::OrderedValuesContainer.
Definition at line 592 of file VectorSequenceContainer.h.
References bpp::AbstractValuesContainer::getAlphabet(), getNumberOfSequences(), bpp::OrderedSequenceContainer::getSequence(), bpp::Alphabet::isResolvedIn(), and bpp::CruxSymbolList::size().
|
inlineprotectedvirtualinherited |
Check if a object with a given name is present in the container.
name | The name of the object. |
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 193 of file VectorMappedContainer.h.
|
inlinevirtual |
check if there is a Sequence with this name in the map (same as hasSequenceByKey).
Implements bpp::SequencedValuesContainer.
Definition at line 184 of file VectorSequenceContainer.h.
References hasSequenceByKey().
|
inline |
check if there is a Sequence with this key in the map.
Definition at line 196 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::hasObject().
Referenced by hasSequence().
bool VectorSequenceContainer::hasSequenceByName | ( | const std::string & | name | ) | const |
Definition at line 147 of file VectorSequenceContainer.cpp.
References bpp::AbstractSequenceContainer::getName(), bpp::OrderedSequenceContainer::getSequence(), and bpp::VectorMappedContainer< Sequence >::getSize().
|
inlineprotectedinherited |
Definition at line 235 of file VectorMappedContainer.h.
|
inlineprotectedinherited |
Insert an object.
object | The object to add. |
objectIndex | The new position of the object |
Definition at line 209 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::getSize(), and bpp::VectorPositionedContainer< T >::positions_.
Referenced by bpp::AlignedSequenceContainer::addSite(), bpp::VectorSiteContainer::addSite(), and bpp::VectorMappedContainer< T >::insertObject().
|
protectedpure virtualinherited |
Implemented in bpp::VectorMappedContainer< T >.
|
inlineinherited |
Return if the name is in the map keys and the mapped object is nullptr or empty.
Definition at line 228 of file MappedNamedContainer.h.
References bpp::MappedNamedContainer< T >::getObject(), and bpp::MappedNamedContainer< T >::hasObject().
Referenced by bpp::CompressedVectorSiteContainer::getSequence(), bpp::VectorSiteContainer::getSequence(), and bpp::VectorProbabilisticSiteContainer::getSequence().
|
inlineinherited |
Definition at line 134 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::getSize(), and bpp::VectorPositionedContainer< T >::positions_.
|
inlineinherited |
Nullify all elements.
Definition at line 163 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::positions_.
Referenced by bpp::AlignedSequenceContainer::addSequence(), bpp::VectorSiteContainer::addSite(), bpp::VectorProbabilisticSiteContainer::addSite(), and bpp::AlignedSequenceContainer::setSequence().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceName | The sequence name. |
elementIndex | The element position within the sequence. |
Implements bpp::SequenceContainer.
Definition at line 354 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceName | The sequence name. |
elementIndex | The element position within the sequence. |
Implements bpp::SequenceContainer.
Definition at line 359 of file VectorSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 374 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 378 of file VectorSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence().
|
inlineprotectedvirtual |
Implements bpp::SequencedValuesContainer.
Definition at line 576 of file VectorSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence().
|
inlineprotectedvirtual |
Implements bpp::OrderedValuesContainer.
Definition at line 603 of file VectorSequenceContainer.h.
References bpp::AbstractValuesContainer::getAlphabet(), bpp::OrderedSequenceContainer::getSequence(), and bpp::Alphabet::isResolvedIn().
VectorSequenceContainer & VectorSequenceContainer::operator= | ( | const OrderedSequenceContainer & | osc | ) |
Copy from an OrderedSequenceContainer.
osc | The OrderedSequenceContainer to copy into this container. |
The keys of the map are the names of the Sequences
Definition at line 115 of file VectorSequenceContainer.cpp.
References addSequence(), clear(), bpp::SequencedValuesContainer::getNumberOfSequences(), bpp::OrderedSequenceContainer::getSequence(), and bpp::AbstractSequenceContainer::operator=().
VectorSequenceContainer & VectorSequenceContainer::operator= | ( | const SequenceContainer & | osc | ) |
Copy from a SequenceContainer.
osc | The SequenceContainer to copy into this container. |
The keys of the map are the names of the Sequences
Definition at line 133 of file VectorSequenceContainer.cpp.
References addSequence(), clear(), bpp::SequenceContainer::getSequence(), bpp::SequencedValuesContainer::getSequenceNames(), and bpp::AbstractSequenceContainer::operator=().
VectorSequenceContainer & VectorSequenceContainer::operator= | ( | const VectorSequenceContainer & | vsc | ) |
Assign from a VectorSequenceContainer.
vsc | The VectorSequenceContainer to copy into this container. |
Assignation operator:
Definition at line 105 of file VectorSequenceContainer.cpp.
References clear(), bpp::AbstractSequenceContainer::operator=(), and bpp::VectorMappedContainer< T >::operator=().
Referenced by bpp::AlignedSequenceContainer::operator=().
|
inlineprotectedvirtualinherited |
Remove and returns a object.
name | The key of the object. |
Reimplemented from bpp::MappedNamedContainer< T >.
Definition at line 288 of file VectorMappedContainer.h.
|
inlineprotectedvirtualinherited |
Extract and remove a object from the container.
objectIndex | The position of the object. |
Reimplemented from bpp::VectorPositionedContainer< T >.
Definition at line 259 of file VectorMappedContainer.h.
|
inlinevirtual |
get the Sequence with this name in the map (same as removeSequenceByKey).
Implements bpp::SequenceContainer.
Definition at line 240 of file VectorSequenceContainer.h.
References removeSequenceByKey().
|
inherited |
Extract (and remove) a sequence from the container.
name | The name of the sequence. |
Referenced by bpp::VectorSiteContainer::removeSequence(), removeSequenceByKey(), and removeSequenceByName().
|
inlinevirtual |
Extract (and remove) a sequence from the container.
sequenceIndex | The position of the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 410 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::removeObject().
|
inline |
remove & return a Sequence with this key from the map.
Definition at line 250 of file VectorSequenceContainer.h.
References getSequencePosition(), and bpp::OrderedSequenceContainer::removeSequence().
Referenced by removeSequence().
std::shared_ptr< Sequence > VectorSequenceContainer::removeSequenceByName | ( | const std::string & | name | ) |
remove & return a Sequence with this name.
Definition at line 178 of file VectorSequenceContainer.cpp.
References bpp::CoreSequence::getName(), bpp::OrderedSequenceContainer::getSequence(), bpp::VectorMappedContainer< Sequence >::getSize(), and bpp::OrderedSequenceContainer::removeSequence().
|
inlineinherited |
Set the comments.
comments | The new comments. |
Definition at line 100 of file Commentable.h.
References bpp::Commentable::comments_.
Referenced by bpp::AbstractCoreSequence::operator=(), bpp::AbstractCoreSequence::setComments(), bpp::SequenceWithAnnotation::setComments(), bpp::SequenceWithQuality::setComments(), bpp::AbstractProbabilisticSequenceContainer::setGeneralComments(), and bpp::AbstractValuesContainer::setGeneralComments().
|
inlinevirtualinherited |
Set the comments of a particular sequence.
name | The name of the sequence. |
comments | The comments to set to sequence with name 'name'. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::SequencedValuesContainer.
Definition at line 116 of file AbstractSequenceContainer.h.
References bpp::OrderedValuesContainer::getSequencePosition(), and bpp::OrderedSequenceContainer::setComments().
|
inlinevirtual |
Implements bpp::AbstractSequenceContainer.
Definition at line 415 of file VectorSequenceContainer.h.
References getSequence_(), and bpp::CoreSequence::setComments().
|
inherited |
Referenced by bpp::AbstractSequenceContainer::setComments().
|
inlinevirtualinherited |
Set the comments of this container.
comments | The comments to be associated to this container. |
Implements bpp::SequencedValuesContainer.
Definition at line 106 of file AbstractValuesContainer.h.
References bpp::Commentable::setComments().
Referenced by bpp::AlignedSequenceContainer::AlignedSequenceContainer(), bpp::AlignedSequenceContainer::createEmptyContainer(), bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::VectorProbabilisticSequenceContainer::createEmptyContainer(), createEmptyContainer(), bpp::VectorSiteContainer::createEmptyContainer(), bpp::SiteContainerTools::getSelectedSites(), bpp::AbstractSequenceContainer::operator=(), and VectorSequenceContainer().
|
pure virtualinherited |
Set the comments of this container.
comments | The comments to be associated to this container. |
Implemented in bpp::AbstractValuesContainer, and bpp::AbstractProbabilisticSequenceContainer.
Referenced by bpp::Clustal::appendAlignmentFromStream(), bpp::Fasta::appendSequencesFromStream(), and bpp::Mase::appendSequencesFromStream().
|
inlineprotectedinherited |
Definition at line 219 of file VectorMappedContainer.h.
|
inlineprotectedinherited |
Definition at line 203 of file VectorMappedContainer.h.
|
inherited |
Replace a sequence in the container.
name | The name of the sequence. |
sequence | The sequence to add. |
checkName | Tell if the container must check if the name of the sequence is already used in the container before adding it. |
Referenced by bpp::VectorSiteContainer::setSequence(), setSequence(), and bpp::AlignedSequenceContainer::setSequence().
|
inlinevirtual |
Copy a Sequence to the given key in the map.
Implements bpp::SequenceContainer.
Definition at line 229 of file VectorSequenceContainer.h.
References getSequencePosition(), and bpp::OrderedSequenceContainer::setSequence().
|
inlinevirtual |
Replace a sequence in the container.
sequenceIndex | The position of the sequence. |
sequence | The sequence to add. |
checkName | Tell if the container must check if the name of the sequence is already used in the container before adding it. |
Implements bpp::OrderedSequenceContainer.
Definition at line 402 of file VectorSequenceContainer.h.
References bpp::VectorMappedContainer< Sequence >::addObject(), bpp::Sequence::clone(), bpp::AbstractValuesContainer::getAlphabet(), bpp::CruxSymbolList::getAlphabet(), bpp::Alphabet::getAlphabetType(), and bpp::CoreSequence::getName().
|
virtual |
set the proper names of the Sequences, in the order of the vector.
Implements bpp::SequencedValuesContainer.
Definition at line 205 of file VectorSequenceContainer.cpp.
References getNumberOfSequences(), getSequence_(), bpp::CoreSequence::setName(), and bpp::VectorMappedContainer< Sequence >::setObjectNames().
|
inlinevirtualinherited |
Reimplemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< ProbabilisticSite >, and bpp::VectorPositionedContainer< Site >.
Definition at line 76 of file PositionedContainer.h.
|
inlinevirtualinherited |
Reimplemented from bpp::PositionedContainer< T >.
Definition at line 139 of file VectorPositionedContainer.h.
References bpp::VectorPositionedContainer< T >::positions_.
Referenced by bpp::VectorProbabilisticSiteContainer::addSequence(), bpp::AlignedSequenceContainer::addSequence(), bpp::AlignedSequenceContainer::AlignedSequenceContainer(), and bpp::AlignedSequenceContainer::operator=().
|
inlinevirtualinherited |
Convert a particular sequence to a string.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::SequencedValuesContainer.
Definition at line 106 of file AbstractSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence(), and bpp::CruxSymbolList::toString().
|
inlinevirtualinherited |
Implements bpp::OrderedValuesContainer.
Definition at line 132 of file AbstractSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence(), and bpp::CruxSymbolList::toString().
|
inherited |
|
inlinevirtual |
Get the value at a Position in a Sequence with given sequenceName in the map (may be not the actual name of the Sequence..
Implements bpp::OrderedSequenceContainer.
Definition at line 349 of file VectorSequenceContainer.h.
References getSequenceByKey().
|
inlinevirtual |
Get the value of an element, given sequenceName in the map and the elementIndex position.
Implements bpp::OrderedSequenceContainer.
Definition at line 337 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container.
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 364 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container.
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 369 of file VectorSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence().
|
protectedinherited |
The container's alphabet.
Definition at line 64 of file AbstractValuesContainer.h.
Referenced by bpp::AbstractValuesContainer::getAlphabet(), bpp::AbstractValuesContainer::operator=(), and bpp::AbstractSequenceContainer::operator=().
|
protectedinherited |
Definition at line 63 of file Commentable.h.
Referenced by bpp::Commentable::clearComments(), bpp::Commentable::getComments(), bpp::Commentable::operator=(), and bpp::Commentable::setComments().
|
privateinherited |
Definition at line 86 of file VectorMappedContainer.h.
|
privateinherited |
Definition at line 69 of file MappedNamedContainer.h.
Referenced by bpp::MappedNamedContainer< T >::addObject(), bpp::MappedNamedContainer< T >::addObject_(), bpp::MappedNamedContainer< T >::changeName(), bpp::MappedNamedContainer< T >::clear(), bpp::MappedNamedContainer< T >::deleteObject(), bpp::MappedNamedContainer< T >::getObject(), bpp::MappedNamedContainer< T >::getObjectNames(), bpp::MappedNamedContainer< T >::getSize(), bpp::MappedNamedContainer< T >::hasObject(), bpp::MappedNamedContainer< T >::operator=(), and bpp::MappedNamedContainer< T >::removeObject().
|
protectedinherited |
Definition at line 73 of file VectorPositionedContainer.h.
Referenced by bpp::VectorPositionedContainer< T >::addObject(), bpp::VectorPositionedContainer< T >::addObject_(), bpp::VectorPositionedContainer< T >::appendObject(), bpp::VectorPositionedContainer< T >::clear(), bpp::VectorPositionedContainer< T >::deleteObject(), bpp::VectorPositionedContainer< T >::deleteObjects(), bpp::VectorPositionedContainer< T >::getObject(), bpp::VectorPositionedContainer< T >::getObject_(), bpp::VectorPositionedContainer< T >::getSize(), bpp::VectorPositionedContainer< T >::insertObject(), bpp::VectorPositionedContainer< T >::isAvailablePosition(), bpp::VectorPositionedContainer< T >::nullify(), bpp::VectorPositionedContainer< T >::operator=(), bpp::VectorPositionedContainer< T >::removeObject(), bpp::VectorPositionedContainer< T >::setSize(), and bpp::VectorPositionedContainer< T >::~VectorPositionedContainer().
|
privateinherited |
Definition at line 79 of file VectorMappedContainer.h.