bpp-seq3
3.0.0
|
The SiteContainer interface. More...
#include <Bpp/Seq/Container/SiteContainer.h>
Public Member Functions | |
TemplateSiteContainerInterface () | |
virtual | ~TemplateSiteContainerInterface () |
TemplateSiteContainerInterface< SiteType, SequenceType, HashType > * | clone () const override=0 |
TemplateSiteContainerInterface< SiteType, SequenceType, HashType > * | createEmptyContainer () const override=0 |
Return a copy of this container, but with no data inside. More... | |
virtual const SiteType & | site (size_t sitePosition) const override=0 |
Get a site from the container. More... | |
virtual void | setSite (size_t sitePosition, std::unique_ptr< SiteType > &site, bool checkCoordinate=true)=0 |
Set a site in the container. More... | |
virtual void | addSite (std::unique_ptr< SiteType > &site, bool checkCoordinate)=0 |
Add a site in the container. More... | |
virtual void | addSite (std::unique_ptr< SiteType > &site, size_t sitePosition, bool checkCoordinate)=0 |
Add a site in the container. More... | |
virtual std::unique_ptr< SiteType > | removeSite (size_t sitePosition)=0 |
Remove a site from the container. More... | |
virtual void | deleteSite (size_t sitePosition)=0 |
Delete a site from the container. More... | |
virtual void | deleteSites (size_t sitePosition, size_t length) override=0 |
Remove a continuous range of sites in the container. More... | |
virtual size_t | getNumberOfSites () const override=0 |
Get the number of aligned positions in the container. More... | |
virtual void | reindexSites () override=0 |
Set all coordinate attributes. More... | |
virtual Vint | getSiteCoordinates () const=0 |
Get all coordinates of sites. More... | |
virtual void | setSiteCoordinates (const Vint &vCoordinates)=0 |
Set all coordinates of sites. More... | |
virtual const Alphabet & | alphabet () const =0 |
Get the container's alphabet. More... | |
virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
Get a pointer toward the container's alphabet. More... | |
virtual size_t | getNumberOfSequences () const =0 |
Get the number of sequences in the container. More... | |
virtual std::vector< HashType > | getSequenceKeys () const =0 |
virtual void | setSequenceKeys (const std::vector< HashType > &sequenceKeys)=0 |
Reset all sequence keys. More... | |
virtual double | getStateValueAt (size_t sitePosition, const HashType &sequenceKey, int state) const =0 |
Get the value of a state at a given position. More... | |
virtual double | getStateValueAt (size_t sitePosition, size_t sequencePosition, int state) const =0 |
Get value of a state at a given position. More... | |
virtual double | operator() (size_t sitePosition, const HashType &sequenceKey, int state) const =0 |
Get the value of a state at a given position. More... | |
virtual double | operator() (size_t sitePosition, size_t sequencePosition, int state) const =0 |
Get the value of a state at a given position. More... | |
virtual void | clear ()=0 |
Delete all data in the container. More... | |
virtual bool | hasSequence (const HashType &sequenceKey) const =0 |
Check if a certain key is associated to a sequence in the container. More... | |
virtual const Comments & | getComments () const =0 |
Get the comments. More... | |
virtual void | setComments (const Comments &comments)=0 |
Set the comments. More... | |
virtual void | clearComments ()=0 |
Access by key | |
virtual const CoreSequenceInterface & | sequence (const HashType &sequenceKey) const =0 |
Retrieve a sequence object from the container. More... | |
virtual void | deleteSequence (const HashType &sequenceKey)=0 |
Remove and delete a sequence from the container. More... | |
Access by position | |
virtual const CoreSequenceInterface & | sequence (size_t sequencePosition) const =0 |
Retrieve a sequence object from the container. More... | |
virtual void | deleteSequence (size_t sequencePosition)=0 |
Remove and delete a sequence from the container. More... | |
Index management | |
Position to key and key to position. | |
virtual const HashType & | sequenceKey (size_t sequencePosition) const =0 |
Get the key associated to a given sequence. More... | |
virtual size_t | getSequencePosition (const HashType &sequenceKey) const =0 |
Get the position of a sequence with a given key in the container. More... | |
Access sequence names | |
virtual std::vector< std::string > | getSequenceNames () const =0 |
virtual void | setSequenceNames (const std::vector< std::string > &names, bool updateKeys)=0 |
Batch-set all sequence names. More... | |
virtual std::vector< Comments > | getSequenceComments () const =0 |
Access by key | |
virtual const SequenceType & | sequence (const HashType &sequenceKey) const override=0 |
Retrieve a sequence object from the container. More... | |
virtual void | setSequence (const HashType &sequenceKey, std::unique_ptr< SequenceType > &sequencePtr)=0 |
Replace a sequence in the container. More... | |
virtual void | addSequence (const HashType &sequenceKey, std::unique_ptr< SequenceType > &sequencePtr)=0 |
Add a sequence to the container. More... | |
virtual std::unique_ptr< SequenceType > | removeSequence (const HashType &sequenceKey)=0 |
Remove a sequence from the container. More... | |
virtual const SequenceType::ElementType & | valueAt (const HashType &sequenceKey, size_t sitePosition) const=0 |
Get the content of the dataset at a specific position (sequence key, site position). More... | |
virtual SequenceType::ElementType & | valueAt (const HashType &sequenceKey, size_t sitePosition)=0 |
Get the content of the dataset at a specific position (sequence key, site position). More... | |
Access by position | |
virtual const SequenceType & | sequence (size_t sequencePosition) const override=0 |
Retrieve a sequence object from the container. More... | |
virtual void | setSequence (size_t sequencePosition, std::unique_ptr< SequenceType > &sequencePtr)=0 |
Replace a sequence in the container. More... | |
virtual void | setSequence (size_t sequencePosition, std::unique_ptr< SequenceType > &sequencePtr, const HashType &sequenceKey)=0 |
Replace a sequence in the container. More... | |
virtual std::unique_ptr< SequenceType > | removeSequence (size_t sequencePosition)=0 |
Remove a sequence from the container. More... | |
virtual const SequenceType::ElementType & | valueAt (size_t sequencePosition, size_t sitePosition) const=0 |
Get the content of the dataset at a specific position (sequence position, site position). More... | |
virtual SequenceType::ElementType & | valueAt (size_t sequencePosition, size_t sitePosition)=0 |
Get the content of the dataset at a specific position (sequence position, site position). More... | |
virtual void | insertSequence (size_t sequencePosition, std::unique_ptr< SequenceType > &sequencePtr, const HashType &sequenceKey)=0 |
Insert a sequence in the container. More... | |
The SiteContainer interface.
Container implementing the SiteContainer interface deal with aligned sequences. This interface provides methods to retrieve, add or set sites in the alignment. As for SequenceContainers, the maintenance of Sites is up to the container.
Definition at line 26 of file SiteContainer.h.
|
inline |
Definition at line 31 of file SiteContainer.h.
|
inlinevirtual |
Definition at line 32 of file SiteContainer.h.
|
pure virtualinherited |
Add a sequence to the container.
Similar to setSequence, with the exception that an Exception will be raised in case of an existing key. Existing sequences will not be updated, only new ones will be appended.
sequenceKey | The key to which the sequence is associated. |
sequencePtr | The sequence to add. |
|
pure virtual |
Add a site in the container.
site | The site to add. |
checkCoordinate | Look if the coordinate of the new site match a coordinate attribute in the container. |
Exception | If the specified site does not exists or is not correct. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::SiteContainerTools::getSelectedSites(), bpp::SiteContainerTools::merge(), and bpp::SiteContainerTools::sampleSites().
|
pure virtual |
Add a site in the container.
site | The site to add. |
sitePosition | The coordinate where to insert the site. |
checkCoordinate | Look if the coordinate of the new site match a coordinate attribute in the container. |
Exception | If the specified site does not exists or is not correct. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >, and bpp::CompressedVectorSiteContainer.
|
pure virtualinherited |
Get the container's alphabet.
Implemented in bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >, bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >, and bpp::AbstractTemplateSequenceContainer< Sequence, std::string >.
Referenced by bpp::SiteContainerTools::resolveDottedAlignment().
|
pure virtualinherited |
Delete all data in the container.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
|
pure virtualinherited |
Implemented in bpp::SimpleCommentable.
|
overridepure virtual |
|
overridepure virtual |
Return a copy of this container, but with no data inside.
This method creates a new SequencedContainer object. The class of this container depends on the class implementing this interface.
Implements bpp::TemplateSequenceContainerInterface< SequenceType, HashType >.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
Referenced by bpp::SiteContainerTools::merge().
|
pure virtualinherited |
Remove and delete a sequence from the container.
sequenceKey | The key to which the sequence is associated. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
pure virtualinherited |
Remove and delete a sequence from the container.
sequencePosition | The position of the sequence. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
pure virtual |
Delete a site from the container.
The site is deleted (ie the container is shortened).
sitePosition | The position of the site in the container. |
IndexOutOfBoundsException | If the specified site does not exists. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
Referenced by bpp::SiteContainerTools::removeGapOnlySites(), bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites(), bpp::SiteContainerTools::removeGapSites(), and bpp::SiteContainerTools::removeSitesWithStopCodon().
|
overridepure virtual |
Remove a continuous range of sites in the container.
sitePosition | The position of the first site in the container. |
length | The length of the region to delete, starting at pposition sitePosition. |
IndexOutOfBoundsException | If the specified range is not valid. |
Implements bpp::TemplateAlignmentDataInterface< HashType >.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
Referenced by bpp::SiteContainerTools::removeGapOnlySites(), and bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites().
|
pure virtualinherited |
Get a pointer toward the container's alphabet.
Implemented in bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >, bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >, and bpp::AbstractTemplateSequenceContainer< Sequence, std::string >.
Referenced by bpp::Pasta::appendAlignmentFromStream(), bpp::Clustal::appendAlignmentFromStream(), bpp::DCSE::appendAlignmentFromStream(), bpp::GenBank::appendSequencesFromStream(), bpp::Fasta::appendSequencesFromStream(), bpp::Mase::appendSequencesFromStream(), bpp::SiteContainerTools::bootstrapSites(), 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::SiteContainerTools::getSelectedSites(), bpp::SiteContainerTools::getSequencePositions(), bpp::SiteContainerTools::getSitesWithoutGaps(), bpp::SiteContainerTools::getSitesWithoutStopCodon(), bpp::SiteContainerTools::merge(), bpp::SequenceContainerTools::mergeByKey(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::Phylip::readInterleaved(), bpp::Phylip::readSequential(), bpp::SiteContainerTools::removeGapOnlySites(), bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites(), bpp::SiteContainerTools::removeGapSites(), bpp::SiteContainerTools::removeSitesWithStopCodon(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::SiteContainerTools::sampleSites(), bpp::Phylip::writeInterleaved(), and bpp::Phylip::writeSequential().
|
pure virtualinherited |
Get the comments.
Implemented in bpp::SimpleCommentable.
Referenced by bpp::Mase::appendSequencesFromStream(), bpp::AllelicAlphabet::convertFromStateAlphabet(), bpp::SiteContainerTools::getSelectedPositions(), bpp::MaseTools::getSelectedSites(), bpp::SiteContainerTools::getSelectedSites(), bpp::AbstractCoreSequence::operator=(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::TemplateVectorSequenceContainer< SequenceType >::operator=(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::NucleicAcidsReplication::reverse(), bpp::AbstractReverseTransliterator::reverse(), bpp::SequenceTools::RNYslice(), bpp::SequenceTools::subseq(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::TemplateAlignedSequenceContainer(), bpp::TemplateVectorSequenceContainer< SequenceType >::TemplateVectorSequenceContainer(), bpp::NucleicAcidsReplication::translate(), bpp::AbstractTransliterator::translate(), bpp::Stockholm::writeAlignment(), bpp::Fasta::writeSequences(), and bpp::Mase::writeSequences().
|
pure virtualinherited |
Get the number of sequences in the container.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::SequenceContainerTools::append(), bpp::SiteContainerTools::changeGapsToUnknownCharacters(), bpp::SiteContainerTools::changeUnresolvedCharactersToGaps(), bpp::SiteContainerTools::computeSimilarityMatrix(), bpp::SequenceContainerTools::convertAlphabet(), bpp::SequenceContainerTools::getCodonPosition(), bpp::SequenceContainerTools::getCounts(), bpp::SequenceContainerTools::getFrequencies(), bpp::SiteContainerTools::getSequencePositions(), bpp::SequenceApplicationTools::getSitesToAnalyse(), bpp::SiteContainerTools::getSitesWithoutStopCodon(), bpp::SequenceContainerTools::hasSequenceWithName(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::operator=(), bpp::TemplateVectorSequenceContainer< SequenceType >::operator=(), bpp::SiteContainerTools::removeGapOnlySites(), bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites(), bpp::SiteContainerTools::removeGapSites(), bpp::SiteContainerTools::removeSitesWithStopCodon(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::TemplateAlignedSequenceContainer(), bpp::TemplateVectorSequenceContainer< SequenceType >::TemplateVectorSequenceContainer(), bpp::Pasta::writeAlignment(), bpp::Clustal::writeAlignment(), bpp::Phylip::writeAlignment(), bpp::Stockholm::writeAlignment(), bpp::Phylip::writeInterleaved(), bpp::Pasta::writeSequences(), and bpp::Phylip::writeSequential().
|
overridepure virtual |
Get the number of aligned positions in the container.
Implements bpp::TemplateAlignmentDataInterface< HashType >.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
Referenced by bpp::SiteContainerTools::bootstrapSites(), bpp::SiteContainerTools::changeGapsToUnknownCharacters(), bpp::SiteContainerTools::changeUnresolvedCharactersToGaps(), bpp::CompressedVectorSiteContainer::CompressedVectorSiteContainer(), bpp::SiteContainerTools::getCompleteSites(), bpp::SiteContainerTools::getSequencePositions(), bpp::SiteContainerTools::getSitesWithoutGaps(), bpp::SiteContainerTools::getSitesWithoutStopCodon(), bpp::SiteContainerTools::merge(), bpp::CompressedVectorSiteContainer::operator=(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::SiteContainerTools::removeGapOnlySites(), bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites(), bpp::SiteContainerTools::removeGapSites(), bpp::SiteContainerTools::removeSitesWithStopCodon(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::SiteContainerTools::sampleSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer(), and bpp::SiteContainerTools::translateSequence().
|
pure virtualinherited |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::CompressedVectorSiteContainer::operator=().
|
pure virtualinherited |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::SequenceContainerTools::append(), bpp::SequenceContainerTools::convertAlphabet(), bpp::SequenceContainerTools::getCodonPosition(), bpp::SiteContainerTools::getCompleteSites(), bpp::SiteContainerTools::getSelectedPositions(), bpp::SiteContainerTools::getSelectedSites(), bpp::SiteContainerTools::getSitesWithoutGaps(), bpp::SiteContainerTools::getSitesWithoutStopCodon(), bpp::SequenceContainerTools::keepOnlySelectedSequences(), bpp::SiteContainerTools::merge(), bpp::SequenceContainerTools::mergeByKey(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::SiteContainerTools::removeGapOnlySites(), bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites(), bpp::SiteContainerTools::removeGapSites(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer(), and bpp::Mase::writeSequences().
|
pure virtualinherited |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::CompressedVectorSiteContainer::CompressedVectorSiteContainer(), bpp::SiteContainerTools::computeSimilarityMatrix(), bpp::SiteContainerTools::getCompleteSites(), bpp::SiteContainerTools::getSelectedSites(), bpp::SiteContainerTools::getSitesWithoutGaps(), bpp::SiteContainerTools::getSitesWithoutStopCodon(), bpp::CompressedVectorSiteContainer::operator=(), bpp::SiteContainerTools::removeGapSites(), bpp::SequenceApplicationTools::restrictSelectedSequencesByName(), bpp::SiteContainerTools::sampleSites(), bpp::Stockholm::writeAlignment(), bpp::Phylip::writeInterleaved(), bpp::Fasta::writeSequences(), and bpp::Phylip::writeSequential().
|
pure virtualinherited |
Get the position of a sequence with a given key in the container.
sequenceKey | The key to which the sequence is associated. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
pure virtualinherited |
Get all coordinates of sites.
|
pure virtualinherited |
Get the value of a state at a given position.
sitePosition | index of the site |
sequenceKey | key of the sequence in the container |
state | state in the alphabet |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
pure virtualinherited |
Get value of a state at a given position.
sitePosition | index of the site |
sequencePosition | index of the sequence in the container |
state | state in the alphabet |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
pure virtualinherited |
Check if a certain key is associated to a sequence in the container.
sequenceKey | The key to which the sequence is associated. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::SequenceContainerTools::getSelectedSequences().
|
pure virtualinherited |
Insert a sequence in the container.
sequencePosition | The position of the sequence. |
sequencePtr | The sequence to add. |
sequenceKey | The new key of the sequence. |
|
pure virtualinherited |
Get the value of a state at a given position.
Same as getValueAt.
sitePosition | index of the site |
sequenceKey | key of the sequence in the container |
state | state in the alphabet |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
pure virtualinherited |
Get the value of a state at a given position.
Same as getValueAt.
sitePosition | index of the site |
sequencePosition | index of the sequence in the container |
state | state in the alphabet |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
overridepure virtual |
Set all coordinate attributes.
Implements bpp::TemplateAlignmentDataInterface< HashType >.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
|
pure virtualinherited |
Remove a sequence from the container.
sequenceKey | The key to which the sequence is associated. |
|
pure virtualinherited |
Remove a sequence from the container.
sequencePosition | The position of the sequence. |
|
pure virtual |
Remove a site from the container.
The site is deleted (ie the container is shortened) and a pointer toward it is returned.
sitePosition | The position of the site in the container. |
IndexOutOfBoundsException | If the specified site does not exists. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
|
pure virtualinherited |
Retrieve a sequence object from the container.
sequenceKey | The key to which the sequence is associated. |
Implemented in bpp::TemplateSequenceContainerInterface< SequenceType, std::string >, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateSequenceContainerInterface< SequenceType, HashType >.
|
overridepure virtualinherited |
Retrieve a sequence object from the container.
sequenceKey | The key to which the sequence is associated. |
Implements bpp::TemplateSequenceDataInterface< HashType >.
|
pure virtualinherited |
Retrieve a sequence object from the container.
sequencePosition | The position of the sequence. |
Implemented in bpp::TemplateSequenceContainerInterface< SequenceType, HashType >, bpp::TemplateSequenceContainerInterface< SequenceType, HashType >, bpp::TemplateSequenceContainerInterface< SequenceType, std::string >, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
overridepure virtualinherited |
Retrieve a sequence object from the container.
sequencePosition | The position of the sequence. |
Implements bpp::TemplateSequenceDataInterface< HashType >.
|
pure virtualinherited |
Get the key associated to a given sequence.
sequencePosition | The position of the sequence in the container. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::TemplateVectorSequenceContainer< SequenceType >::operator=(), and bpp::TemplateVectorSequenceContainer< SequenceType >::TemplateVectorSequenceContainer().
|
pure virtualinherited |
Set the comments.
comments | The new comments. |
Implemented in bpp::SimpleCommentable.
Referenced by bpp::Pasta::appendAlignmentFromStream(), bpp::Clustal::appendAlignmentFromStream(), bpp::Fasta::appendSequencesFromStream(), and bpp::Mase::appendSequencesFromStream().
|
pure virtualinherited |
Replace a sequence in the container.
If a sequence is found with the given key, it will be updated with the new one. If no sequence with the given key is found, the new sequence will be added to the container.
sequenceKey | The key to which the sequence is associated. |
sequencePtr | The sequence to set. |
|
pure virtualinherited |
Replace a sequence in the container.
The original key associated to the sequence will be kept.
sequencePosition | The position of the sequence. |
sequencePtr | The sequence to add. |
|
pure virtualinherited |
Replace a sequence in the container.
The original key associated to the sequence will be kept.
sequencePosition | The position of the sequence. |
sequencePtr | The sequence to add. |
sequenceKey | The new key of the sequence. |
|
pure virtualinherited |
Reset all sequence keys.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
|
pure virtualinherited |
Batch-set all sequence names.
names | A vector of sequence names. Must be the same size as the number of sequences in the container, otherwise a DimensionException is thrown. |
updateKeys | Tell whether the keys of the sequences should be updated with the new sequence names. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateVectorSequenceContainer< SequenceType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::SiteContainerTools::getSelectedSites(), and bpp::SiteContainerTools::sampleSites().
|
pure virtual |
Set a site in the container.
sitePosition | The position of the site in the container. |
site | The site to set. |
checkCoordinate | Look if the coordinate of the new site match a coordinate attribute in the container. |
Exception | If the specified site does not exists or is not correct. |
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >, and bpp::CompressedVectorSiteContainer.
Referenced by bpp::SiteContainerTools::changeGapsToUnknownCharacters(), and bpp::SiteContainerTools::changeUnresolvedCharactersToGaps().
|
pure virtualinherited |
Set all coordinates of sites.
vCoordinates | A vector with all site coordinates. |
|
overridepure virtual |
Get a site from the container.
sitePosition | The position of the site in the container. |
IndexOutOfBoundsException | If the specified site does not exists. |
Implements bpp::TemplateAlignmentDataInterface< HashType >.
Implemented in bpp::TemplateVectorSiteContainer< SiteType, SequenceType >, bpp::CompressedVectorSiteContainer, and bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >.
Referenced by bpp::SiteContainerTools::changeGapsToUnknownCharacters(), bpp::SiteContainerTools::changeUnresolvedCharactersToGaps(), bpp::CompressedVectorSiteContainer::CompressedVectorSiteContainer(), bpp::SiteContainerTools::getCompleteSites(), bpp::SiteContainerTools::getSelectedSites(), bpp::SiteContainerTools::getSitesWithoutGaps(), bpp::SiteContainerTools::getSitesWithoutStopCodon(), bpp::SiteContainerTools::merge(), bpp::CompressedVectorSiteContainer::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::SiteContainerTools::removeGapOnlySites(), bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites(), bpp::SiteContainerTools::removeGapSites(), bpp::SiteContainerTools::removeSitesWithStopCodon(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::SiteContainerTools::sampleSites(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
pure virtualinherited |
Get the content of the dataset at a specific position (sequence key, site position).
sequenceKey | key of the sequence in the container |
sitePosition | index of the site |
|
pure virtualinherited |
Get the content of the dataset at a specific position (sequence key, site position).
sequenceKey | key of the sequence in the container |
sitePosition | index of the site |
|
pure virtualinherited |
Get the content of the dataset at a specific position (sequence position, site position).
sequencePosition | index of the sequence in the container |
sitePosition | index of the site |
|
pure virtualinherited |
Get the content of the dataset at a specific position (sequence position, site position).
sequencePosition | index of the sequence in the container |
sitePosition | index of the site |