bpp-seq3
3.0.0
|
A SequenceWithAnnotation class with quality scores attached. More...
#include <Bpp/Seq/SequenceWithQuality.h>
Public Types | |
typedef int | ElementType |
typedef int | SymbolType |
Public Member Functions | |
SequenceWithQuality (const SequenceWithQuality &sequence) | |
SequenceWithQuality & | operator= (const SequenceWithQuality &sequence) |
virtual void | addAnnotation (std::shared_ptr< SequenceAnnotation > anno) |
Add a new annotation to the sequence. More... | |
virtual bool | hasAnnotation (const std::string &type) const |
virtual const SequenceAnnotation & | annotation (const std::string &type) const |
virtual SequenceAnnotation & | annotation (const std::string &type) |
virtual std::vector< std::string > | getAnnotationTypes () const |
virtual void | merge (const SequenceWithAnnotation &swa) |
Merge a sequence with the current one. More... | |
virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
Get the alphabet associated to the list. More... | |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
Get the alphabet associated to the list. More... | |
virtual const Alphabet & | alphabet () const =0 |
Get the alphabet associated to the list. More... | |
const Alphabet & | alphabet () const override |
Get the alphabet associated to the list. More... | |
virtual size_t | size () const =0 |
Get the number of elements in the list. More... | |
size_t | size () const override |
Get the number of elements in the list. More... | |
virtual std::string | toString () const =0 |
Convert the list as a string. More... | |
virtual std::string | toString () const override |
Convert the list as a string. More... | |
void | deleteElement (size_t pos) override |
Remove the element at position 'pos'. More... | |
void | deleteElement (size_t pos) override |
Remove the element at position 'pos'. More... | |
void | deleteElements (size_t pos, size_t len) override |
Remove the elements at position 'pos'. More... | |
void | deleteElements (size_t pos, size_t len) override |
Remove the elements at position 'pos'. More... | |
void | shuffle () override |
Randomly shuffle the content of the list, with linear complexity. More... | |
virtual double | getStateValueAt (size_t position, int state) const =0 |
get value of a state at a position More... | |
double | getStateValueAt (size_t siteIndex, int state) const override |
get value of a state at a position More... | |
virtual double | operator() (size_t position, int state) const =0 |
get value of a state at a position More... | |
double | operator() (size_t siteIndex, int state) const override |
get value of a state at a position More... | |
virtual const Comments & | getComments () const =0 |
Get the comments. More... | |
const Comments & | getComments () const override |
Get the comments. More... | |
virtual void | setComments (const Comments &comments)=0 |
Set the comments. More... | |
void | setComments (const Comments &comments) override |
Set the comments. More... | |
virtual void | clearComments ()=0 |
void | clearComments () override |
virtual void | addElement (const std::string &c) override |
Add a character to the end of the list. More... | |
virtual void | addElement (size_t pos, const std::string &c) override |
Add a character at a certain position in the list. More... | |
void | addElement (const int &c) override |
Add a character to the end of the list. More... | |
void | addElement (size_t pos, const int &c) override |
Add a character at a certain position in the list. More... | |
virtual void | addElement (const int &c) override |
Add a character to the end of the list. More... | |
virtual void | addElement (size_t pos, const int &c) override |
Add a character at a certain position in the list. More... | |
virtual void | setElement (size_t pos, const std::string &c) override |
Set the element at position 'pos' to character 'c'. More... | |
void | setElement (size_t pos, const T &c) override |
void | setElement (size_t pos, const int &c) override |
Set the element at position 'pos' to character 'c'. More... | |
virtual void | setElement (size_t pos, const int &c) override |
Set the element at position 'pos' to character 'c'. More... | |
virtual std::string | getChar (size_t pos) const override |
Get the element at position 'pos' as a character. More... | |
virtual const std::vector< int > & | getContent () const override |
const int & | getElement (size_t pos) const override |
Get the element at position 'pos' as a character. More... | |
const int & | getValue (size_t pos) const override |
checked access to a character in list. More... | |
const int & | operator[] (size_t pos) const override |
Operator [] overloaded for quick access to a character in list. More... | |
int & | operator[] (size_t pos) override |
Operator [] overloaded for quick access to a character in list. More... | |
void | addIntSymbolListListener (std::shared_ptr< IntSymbolListListener > listener) |
Constructors | |
SequenceWithQuality (std::shared_ptr< const Alphabet > &alpha) | |
Build a new empty SequenceWithQuality. More... | |
SequenceWithQuality (const std::string &name, const std::string &sequence, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::string. More... | |
SequenceWithQuality (const std::string &name, const std::string &sequence, const Comments &comments, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::string. More... | |
SequenceWithQuality (const std::string &name, const std::string &sequence, const std::vector< int > &quality, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::string. More... | |
SequenceWithQuality (const std::string &name, const std::string &sequence, const std::vector< int > &quality, const Comments &comments, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::string. More... | |
SequenceWithQuality (const std::string &name, const std::vector< int > &sequence, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::vector<int> More... | |
SequenceWithQuality (const std::string &name, const std::vector< int > &sequence, const Comments &comments, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::vector<int> More... | |
SequenceWithQuality (const std::string &name, const std::vector< int > &sequence, const std::vector< int > &quality, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::vector<int> More... | |
SequenceWithQuality (const std::string &name, const std::vector< int > &sequence, const std::vector< int > &quality, const Comments &comments, std::shared_ptr< const Alphabet > &alpha) | |
Build a new SequenceWithQuality from a std::vector<int> More... | |
SequenceWithQuality (const Sequence &s) | |
Build a new SequenceWithQuality. More... | |
SequenceWithQuality (const Sequence &s, const std::vector< int > &sc) | |
Build a new SequenceWithQuality. More... | |
Destructor | |
virtual | ~SequenceWithQuality () |
The Clonable interface | |
SequenceWithQuality * | clone () const override |
Dealing with quality | |
void | setQuality (size_t pos, int quality) |
Set the quality score. More... | |
int | getQuality (size_t pos) const |
Get the quality score. More... | |
void | setQualities (const std::vector< int > &quality) |
Set the whole quality scores. More... | |
const std::vector< int > & | getQualities () const |
Get the whole quality scores. More... | |
virtual void | append (const std::vector< int > &content, const std::vector< int > &qualities) |
Append content with quality. More... | |
virtual void | append (const std::vector< std::string > &content, const std::vector< int > &qualities) |
Append content with quality. More... | |
virtual void | append (const std::string &content, const std::vector< int > &qualities) |
Append content with quality. More... | |
void | addElement (const std::string &c, int q) |
void | addElement (size_t pos, const std::string &c, int q) |
Add a character to a certain position in the list with quality. More... | |
void | addElement (int v, int q) |
Add a character to the end of the list with quality. More... | |
void | addElement (size_t pos, int v, int q) |
Add a character to a certain position in the list with quality. More... | |
void | append (const SequenceInterface &seq) override |
Append the content of a sequence to the current one. More... | |
void | append (const std::vector< int > &content) override |
void | append (const std::vector< std::string > &content) override |
void | append (const std::string &content) override |
virtual void | addElement (const T &c)=0 |
Add a character to the end of the list with quality. More... | |
virtual void | addElement (size_t pos, const T &c)=0 |
Add a character to the end of the list with quality. More... | |
virtual void | addElement (const std::string &c) override |
virtual void | addElement (size_t pos, const std::string &c) override |
Adjusting the size of the sequence. | |
virtual void | setContent (const std::string &sequence) override |
Set the whole content of the sequence. More... | |
void | setContent (const std::vector< std::string > &list) override |
Set the whole content of the list. More... | |
void | setContent (const std::vector< int > &list) override |
void | setToSizeR (size_t newSize) override |
Set up the size of a sequence from the right side. More... | |
void | setToSizeL (size_t newSize) override |
Set up the size of a sequence from the left side. More... | |
void | append (const SequenceInterface &seq) override |
Append the content of a sequence to the current one. More... | |
void | append (const std::vector< int > &content) override |
Append the specified content to the sequence. More... | |
void | append (const std::vector< std::string > &content) override |
Append the specified content to the sequence. More... | |
void | append (const std::string &content) override |
Append the specified content to the sequence. More... | |
Acting on the content of the list. | |
virtual void | setContent (const std::vector< T > &list)=0 |
Set the whole content of the list. More... | |
Acting on the content of the list. | |
virtual void | setContent (const std::vector< T > &list)=0 |
Set the whole content of the list. More... | |
virtual const std::vector< T > & | getContent () const =0 |
Setting/getting the name of the sequence. | |
virtual const std::string & | getName () const =0 |
Get the name of this sequence. More... | |
virtual void | setName (const std::string &name)=0 |
Set the name of this sequence. More... | |
Setting/getting the name of the sequence. | |
const std::string & | getName () const override |
Get the name of this sequence. More... | |
void | setName (const std::string &name) override |
Set the name of this sequence. More... | |
Edition methods. | |
virtual void | deleteElement (size_t pos)=0 |
Remove the element at position 'pos'. More... | |
virtual void | deleteElements (size_t pos, size_t len)=0 |
Remove the elements at position 'pos'. More... | |
Provide direct access to the list content. | |
| |
virtual void | shuffle ()=0 |
Randomly shuffle the content of the list, with linear complexity. More... | |
Edition methods. | |
virtual void | addElement (const std::string &c)=0 |
Add a character to the end of the list. More... | |
virtual void | addElement (size_t pos, const std::string &c)=0 |
Add a character at a certain position in the list. More... | |
virtual void | setElement (size_t pos, const std::string &c)=0 |
Set the element at position 'pos' to character 'c'. More... | |
virtual void | setElement (size_t pos, const T &c)=0 |
Set the element at position 'pos' to character 'c'. More... | |
virtual std::string | getChar (size_t pos) const =0 |
Get the element at position 'pos' as a character. More... | |
Edition methods. | |
virtual void | addElement (const T &c)=0 |
Add a character to the end of the list. More... | |
virtual void | addElement (size_t pos, const T &c)=0 |
Add a character at a certain position in the list. More... | |
virtual void | setElement (size_t pos, const T &c)=0 |
Set the element at position 'pos' to character 'c'. More... | |
virtual const T & | getElement (size_t pos) const =0 |
Get the element at position 'pos' as a character. More... | |
Provide direct access to the list content. | |
| |
virtual const T & | getValue (size_t pos) const =0 |
checked access to a character in list. More... | |
virtual const T & | operator[] (size_t pos) const =0 |
Operator [] overloaded for quick access to a character in list. More... | |
virtual T & | operator[] (size_t pos)=0 |
Operator [] overloaded for quick access to a character in list. More... | |
Protected Member Functions | |
virtual void | beforeSequenceChanged (const IntSymbolListEditionEvent &event) override |
virtual void | afterSequenceChanged (const IntSymbolListEditionEvent &event) override |
virtual void | beforeSequenceInserted (const IntSymbolListInsertionEvent &event) override |
virtual void | afterSequenceInserted (const IntSymbolListInsertionEvent &event) override |
virtual void | beforeSequenceDeleted (const IntSymbolListDeletionEvent &event) override |
virtual void | afterSequenceDeleted (const IntSymbolListDeletionEvent &event) override |
virtual void | beforeSequenceSubstituted (const IntSymbolListSubstitutionEvent &event) override |
virtual void | afterSequenceSubstituted (const IntSymbolListSubstitutionEvent &event) override |
void | propagateEvents (bool yn) override |
bool | propagateEvents () const override |
Protected Attributes | |
Comments | comments_ |
std::vector< int > | content_ |
The list content. More... | |
std::vector< std::shared_ptr< CoreSymbolListListener< int > > > | listeners_ |
Contains the listeners. More... | |
Private Attributes | |
std::shared_ptr< SequenceQuality > | qualScores_ |
std::string | name_ |
The sequence name. More... | |
std::shared_ptr< const Alphabet > | alphabet_ |
The Alphabet attribute must be initialized in constructor and then can never be changed. More... | |
bool | propagateEvents_ |
A SequenceWithAnnotation class with quality scores attached.
This classes adds some useful functions to handle quality scores.
Definition at line 181 of file SequenceWithQuality.h.
|
inherited |
Definition at line 36 of file Sequence.h.
|
inherited |
Definition at line 31 of file IntSymbolList.h.
|
inline |
Build a new empty SequenceWithQuality.
alpha | A pointer to an Alphabet |
BadCharException | if a state is not allowed by the Alphabet |
Definition at line 200 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
Referenced by clone().
|
inline |
Build a new SequenceWithQuality from a std::string.
Build a new SequenceWithQuality and set the quality scores to the default value DEFAULT_QUALITY_VALUE.
name | The name of the sequence |
sequence | The string representing the sequence |
alpha | A pointer to an Alphabet |
BadCharException | if a state is not allowed by the Alphabet |
Definition at line 221 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality from a std::string.
Build a new SequenceWithQuality and set the quality scores to the default value DEFAULT_QUALITY_VALUE.
name | The name of the sequence |
sequence | The string representing the sequence |
comments | Comments to add to the sequence |
alpha | A pointer to an Alphabet |
BadCharException | if a state is not allowed by the Alphabet |
Definition at line 247 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality from a std::string.
Build a new SequenceWithQuality and assign quality scores from a vector of int.
name | The name of the sequence |
sequence | The string representing the sequence |
quality | The quality scores |
alpha | A pointer to an alphabet |
BadCharException | if a state is not allowed by the Alphabet |
DimensionException | if the number of quality values is not equal to the number of sequence states |
Definition at line 274 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality from a std::string.
Build a new SequenceWithQuality and assign quality scores from a vector of int.
name | The name of the sequence |
sequence | The string representing the sequence |
quality | The quality scores |
comments | Comments to add to the sequence |
alpha | A pointer to an alphabet |
BadCharException | if a state is not allowed by the Alphabet |
DimensionException | if the number of quality values is not equal to the number of sequence states |
Definition at line 304 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality from a std::vector<int>
Build a new SequenceWithQuality and set the quality scores to the default value DEFAULT_QUALITY_VALUE.
name | The name of the sequence |
sequence | The sequence in int |
alpha | A pointer to an Alphabet |
BadIntException | if a state is not allowed by the Alphabet |
Definition at line 329 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality from a std::vector<int>
Build a new SequenceWithQuality and set the quality scores to the default value DEFAULT_QUALITY_VALUE.
name | The name of the sequence |
sequence | The sequence in int |
comments | Comments to add to the sequence |
alpha | A pointer to an Alphabet |
BadIntException | if a state is not allowed by the Alphabet |
Definition at line 355 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality from a std::vector<int>
Build a new SequenceWithQuality and assign quality scores from a vector of int.
name | The name of the sequence |
sequence | The sequence in int |
quality | The quality scores |
alpha | A pointer to an Alphabet |
BadIntException | if a state is not allowed by the Alphabet |
DimensionException | if the number of quality values is not equal to the number of sequence states |
Definition at line 382 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality from a std::vector<int>
Build a new SequenceWithQuality and assign quality scores from a vector of int.
name | The name of the sequence |
sequence | The sequence in int |
quality | The quality scores |
comments | Comments to add to the sequence |
alpha | A pointer to an Alphabet |
BadIntException | if a state is not allowed by the Alphabet |
DimensionException | if the number of quality values is not equal to the number of sequence states |
Definition at line 412 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality.
Build a new SequenceWithQuality from a Sequence object and set the quality scores to the default value DEFAULT_QUALITY_VALUE.
s | The Sequence object |
Definition at line 433 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inline |
Build a new SequenceWithQuality.
Build a new SequenceWithQuality from a Sequence object and set the quality scores from a vector of int.
s | The Sequence object |
sc | The quality scores |
DimensionException | if the number of quality values is not equal to the number of sequence states |
Definition at line 452 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::addAnnotation(), and qualScores_.
|
inlinevirtual |
Definition at line 468 of file SequenceWithQuality.h.
|
inline |
Definition at line 471 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::annotation(), bpp::SequenceQuality::QUALITY_SCORE, and qualScores_.
|
inlinevirtualinherited |
Add a new annotation to the sequence.
anno | The annotation object to be added. Unless the annotation is shared, the annotation object will be owned by the sequence object, and will be copied and deleted when needed. |
Exception | If the annotation is not valid for this sequence. |
Definition at line 349 of file SequenceWithAnnotation.h.
References bpp::EventDrivenIntSymbolList::addIntSymbolListListener().
Referenced by SequenceWithQuality().
|
inlineoverridevirtualinherited |
Definition at line 391 of file SymbolList.h.
|
pure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideinherited |
Add a character to the end of the list.
c | The character to add. |
Definition at line 152 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Add a character to the end of the list.
c | The character to add. |
Definition at line 336 of file SymbolList.h.
|
overridevirtualinherited |
Add a character to the end of the list.
c | The character to add, given as a string. |
Reimplemented from bpp::IntSymbolList.
Definition at line 113 of file IntSymbolList.cpp.
References bpp::AbstractTemplateEventDrivenSymbolList< T >::addElement().
|
override |
Definition at line 358 of file IntSymbolList.cpp.
|
pure virtualinherited |
Add a character to the end of the list.
c | The character to add, given as a string. |
Implemented in bpp::EventDrivenIntSymbolList, and bpp::IntSymbolList.
|
inline |
Definition at line 637 of file SequenceWithQuality.h.
References bpp::IntSymbolListInterface::addElement(), qualScores_, and bpp::CruxSymbolListInterface::size().
|
pure virtualinherited |
Add a character to the end of the list.
c | The character to add. |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >, and bpp::AbstractTemplateSymbolList< T >.
virtual void bpp::TemplateCoreSymbolListInterface< T >::addElement |
Add a character to the end of the list with quality.
c | The element to add to the sequence |
q | The quality of this element |
BadCharException | if one of the character of the string is not in the Alphabet |
|
inline |
Add a character to the end of the list with quality.
v | The element to add to the sequence |
q | The quality of this element |
BadIntException | if the value does not match the current Alphabet |
Definition at line 672 of file SequenceWithQuality.h.
References bpp::IntSymbolList::addElement(), qualScores_, and bpp::CruxSymbolListInterface::size().
|
inlineoverrideinherited |
Add a character at a certain position in the list.
pos | The position where to insert the element. |
c | The character to add. |
Definition at line 157 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Add a character at a certain position in the list.
pos | The position where to insert the element. |
c | The character to add. |
Definition at line 344 of file SymbolList.h.
|
overridevirtualinherited |
Add a character at a certain position in the list.
pos | The position where to insert the element. |
c | The character to add, given as a string. |
Reimplemented from bpp::IntSymbolList.
Definition at line 120 of file IntSymbolList.cpp.
References bpp::AbstractTemplateEventDrivenSymbolList< T >::addElement().
|
override |
Definition at line 360 of file IntSymbolList.cpp.
|
pure virtualinherited |
Add a character at a certain position in the list.
pos | The position where to insert the element. |
c | The character to add, given as a string. |
Implemented in bpp::EventDrivenIntSymbolList, and bpp::IntSymbolList.
|
inline |
Add a character to a certain position in the list with quality.
pos | The position where the element will be inserted |
c | The element to add to the sequence |
q | The quality of this element |
BadCharException | if one of the character of the string is not in the Alphabet |
IndexOutOfBoundsException | if pos is greater than the sequence size |
Definition at line 655 of file SequenceWithQuality.h.
References bpp::IntSymbolListInterface::addElement(), and qualScores_.
|
pure virtualinherited |
Add a character at a certain position in the list.
pos | The position where to insert the element. |
c | The character to add. |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >, and bpp::AbstractTemplateSymbolList< T >.
virtual void bpp::TemplateCoreSymbolListInterface< T >::addElement |
Add a character to the end of the list with quality.
c | The element to add to the sequence |
q | The quality of this element |
BadCharException | if one of the character of the string is not in the Alphabet |
|
inline |
Add a character to a certain position in the list with quality.
pos | The position where the element will be inserted |
v | The element to add to the sequence |
q | The quality of this element |
BadIntException | if the value does not match the current Alphabet |
IndexOutOfBoundsException | if pos is greater than the sequence size |
Definition at line 689 of file SequenceWithQuality.h.
References bpp::IntSymbolList::addElement(), and qualScores_.
|
inlineinherited |
Definition at line 368 of file IntSymbolList.h.
References bpp::AbstractTemplateEventDrivenSymbolList< int >::addCoreSymbolListListener(), and bpp::AbstractTemplateEventDrivenSymbolList< int >::listener().
Referenced by bpp::SequenceWithAnnotation::addAnnotation().
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 375 of file IntSymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 379 of file IntSymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 377 of file IntSymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 381 of file IntSymbolList.h.
|
pure virtualinherited |
Get the alphabet associated to the list.
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
Referenced by bpp::SequenceTools::combineSequences(), bpp::SequenceTools::complement(), bpp::SequenceTools::concatenate(), bpp::GeneticCode::getCodingSequence(), bpp::SequenceTools::getComplement(), bpp::SequenceTools::getNumberOfCompleteSites(), bpp::SequenceTools::getNumberOfSites(), bpp::SequenceTools::getPercentIdentity(), bpp::SequenceTools::getSequenceWithCompleteSites(), bpp::SequenceTools::invertComplement(), bpp::AbstractReverseTransliterator::reverse(), bpp::SequenceTools::RNYslice(), and bpp::AbstractTransliterator::translate().
|
inlineoverridevirtualinherited |
Get the alphabet associated to the list.
Implements bpp::CruxSymbolListInterface.
Definition at line 122 of file SymbolList.h.
|
inlinevirtualinherited |
Definition at line 386 of file SequenceWithAnnotation.h.
References bpp::AbstractTemplateEventDrivenSymbolList< int >::getNumberOfListeners(), bpp::SequenceAnnotation::getType(), and bpp::AbstractTemplateEventDrivenSymbolList< int >::listener().
|
inlinevirtualinherited |
Definition at line 371 of file SequenceWithAnnotation.h.
References bpp::AbstractTemplateEventDrivenSymbolList< int >::getNumberOfListeners(), bpp::SequenceAnnotation::getType(), and bpp::AbstractTemplateEventDrivenSymbolList< int >::listener().
Referenced by bpp::SequenceWithAnnotation::merge(), operator=(), and SequenceWithQuality().
|
overridevirtualinherited |
Append the content of a sequence to the current one.
seq | The sequence to append. Only the raw content is appended, not additional fields such as annotations if any. |
AlphabetMismatchException | In case the alphabet does not match the current one. |
Implements bpp::SequenceInterface.
Definition at line 87 of file SequenceWithAnnotation.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by append().
|
override |
Append the content of a sequence to the current one.
seq | The sequence to append. Only the raw content is appended, not additional fields such as annotations if any. |
AlphabetMismatchException | In case the alphabet does not match the current one. |
Definition at line 330 of file SequenceWithAnnotation.cpp.
Referenced by append().
|
overridevirtualinherited |
Append the specified content to the sequence.
content | The content to append to the sequence. |
BadCharException | If the content does not match the current alphabet. |
Implements bpp::SequenceInterface.
Definition at line 140 of file SequenceWithAnnotation.cpp.
References bpp::StringSequenceTools::codeSequence().
|
override |
Definition at line 336 of file SequenceWithAnnotation.cpp.
|
inlinevirtual |
Append content with quality.
content | A string to append to the sequence |
qualities | A vector of int to append to the qualities |
BadCharException | if one of the character of the string is not in the Alphabet |
DimensionException | if qualities does not have the same size as content |
Definition at line 612 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::append(), and qualScores_.
|
overridevirtualinherited |
Append the specified content to the sequence.
content | The content to append to the sequence. |
BadIntException | If the content does not match the current alphabet. |
Implements bpp::SequenceInterface.
Definition at line 101 of file SequenceWithAnnotation.cpp.
|
override |
Definition at line 332 of file SequenceWithAnnotation.cpp.
|
inlinevirtual |
Append content with quality.
content | A vector of int to append to the sequence |
qualities | A vector of int to append to the qualities |
BadIntException | if one of the content int is not in the Alphabet |
DimensionException | if qualities does not have the same size as content |
Definition at line 566 of file SequenceWithQuality.h.
References append(), and qualScores_.
Referenced by bpp::SequenceWithQualityTools::subseq().
|
overridevirtualinherited |
Append the specified content to the sequence.
content | The content to append to the sequence. |
BadCharException | If the content does not match the current alphabet. |
Implements bpp::SequenceInterface.
Definition at line 120 of file SequenceWithAnnotation.cpp.
|
override |
Definition at line 334 of file SequenceWithAnnotation.cpp.
|
inlinevirtual |
Append content with quality.
content | A vector of string to append to the sequence |
qualities | A vector of int to append to the qualities |
BadCharException | if one of the content string is not in the Alphabet |
DimensionException | if qualities does not have the same size as content |
Definition at line 589 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::append(), and qualScores_.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 374 of file IntSymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 378 of file IntSymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 376 of file IntSymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 380 of file IntSymbolList.h.
|
inlineoverridevirtualinherited |
Implements bpp::Commentable.
Definition at line 88 of file Commentable.h.
References bpp::SimpleCommentable::comments_.
|
pure virtualinherited |
Implemented in bpp::SimpleCommentable.
|
inlineoverridevirtual |
Reimplemented from bpp::SequenceWithAnnotation.
Definition at line 489 of file SequenceWithQuality.h.
References SequenceWithQuality().
Referenced by bpp::SequenceWithQualityTools::invert(), and bpp::SequenceWithQualityTools::removeGaps().
|
inlineoverridevirtualinherited |
Remove the element at position 'pos'.
pos | The position of the element to remove. |
Implements bpp::CruxSymbolListInterface.
Reimplemented in bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 138 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Remove the element at position 'pos'.
pos | The position of the element to remove. |
Reimplemented from bpp::AbstractTemplateSymbolList< int >.
Definition at line 319 of file SymbolList.h.
|
pure virtualinherited |
Remove the element at position 'pos'.
pos | The position of the element to remove. |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >, bpp::AbstractTemplateEventDrivenSymbolList< int >, bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
Referenced by bpp::SequenceTools::getCDS(), bpp::SequenceTools::removeGaps(), and bpp::SequenceTools::removeStops().
|
inlineoverridevirtualinherited |
Remove the elements at position 'pos'.
pos | The position of the first element to remove. |
len | The length of the region to remove. |
Implements bpp::CruxSymbolListInterface.
Reimplemented in bpp::AbstractTemplateEventDrivenSymbolList< int >.
Definition at line 145 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Remove the elements at position 'pos'.
pos | The position of the first element to remove. |
len | The length of the region to remove. |
Reimplemented from bpp::AbstractTemplateSymbolList< int >.
Definition at line 328 of file SymbolList.h.
|
pure virtualinherited |
Remove the elements at position 'pos'.
pos | The position of the first element to remove. |
len | The length of the region to remove. |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >, bpp::AbstractTemplateEventDrivenSymbolList< int >, bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
|
inlineoverrideprotectedinherited |
Definition at line 424 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedinherited |
Definition at line 464 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedinherited |
Definition at line 444 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedinherited |
Definition at line 484 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedinherited |
Definition at line 414 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedinherited |
Definition at line 454 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedinherited |
Definition at line 434 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverrideprotectedinherited |
Definition at line 474 of file SymbolList.h.
|
protectedpure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
pure virtualinherited |
Get the alphabet associated to the list.
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
Referenced by bpp::Sequence::append(), bpp::SequenceWithAnnotation::append(), bpp::SequenceTools::areSequencesIdentical(), bpp::SymbolListTools::areSymbolListsIdentical(), bpp::SequenceTools::bowkerTest(), bpp::SymbolListTools::changeGapsToUnknownCharacters(), bpp::SymbolListTools::changeUnresolvedCharactersToGaps(), bpp::SequenceTools::combineSequences(), bpp::SequenceWithQualityTools::complement(), bpp::SequenceTools::complement(), bpp::SiteContainerTools::computeSimilarity(), bpp::SequenceTools::concatenate(), bpp::SequenceWithQualityTools::concatenate(), bpp::SequenceTools::findFirstOf(), bpp::SequenceTools::getCDS(), bpp::SequenceTools::getComplement(), bpp::SymbolListTools::getCountsResolveUnknowns(), bpp::SymbolListTools::getGCContent(), bpp::SymbolListTools::getNumberOfDistinctPositions(), bpp::SymbolListTools::getNumberOfPositionsWithoutGap(), bpp::SequenceTools::getNumberOfUnresolvedSites(), bpp::SequenceTools::getPercentIdentity(), bpp::SequenceTools::getPutativeHaplotypes(), bpp::SequenceTools::getSequenceWithoutGaps(), bpp::SequenceTools::getSequenceWithoutStops(), bpp::SymbolListTools::hasGap(), bpp::SymbolListTools::hasUnknown(), bpp::SymbolListTools::hasUnresolved(), bpp::SequenceTools::invertComplement(), bpp::SymbolListTools::isComplete(), bpp::SymbolListTools::isConstant(), bpp::SymbolListTools::isGapOnly(), bpp::SymbolListTools::isGapOrUnresolvedOnly(), bpp::SymbolListTools::jointEntropy(), bpp::SequenceWithAnnotation::merge(), bpp::SymbolListTools::mutualInformation(), bpp::SymbolListTools::numberOfGaps(), bpp::SymbolListTools::numberOfUnresolved(), bpp::ProbabilisticSymbolList::operator=(), bpp::AbstractTemplateSymbolList< T >::operator=(), bpp::SequenceWithQualityTools::removeGaps(), bpp::SequenceTools::removeGaps(), bpp::SequenceTools::removeStops(), bpp::SequenceTools::replaceStopsWithGaps(), bpp::WordAlphabet::reverse(), bpp::NucleicAcidsReplication::reverse(), bpp::SequenceWithQualityTools::reverseTranscript(), bpp::SequenceTools::RNYslice(), bpp::SequenceTools::subseq(), bpp::SequenceWithQualityTools::subseq(), bpp::SequenceTools::subtractHaplotype(), bpp::SequenceWithQualityTools::transcript(), bpp::NucleicAcidsReplication::translate(), bpp::AbstractTransliterator::translate(), bpp::WordAlphabet::translate(), and bpp::SymbolListTools::variabilityShannon().
|
inlineoverridevirtualinherited |
Get the alphabet associated to the list.
Implements bpp::CruxSymbolListInterface.
Definition at line 120 of file SymbolList.h.
|
virtualinherited |
Definition at line 148 of file SequenceWithAnnotation.cpp.
References bpp::SequenceAnnotation::getType().
Referenced by bpp::SequenceWithAnnotation::merge().
|
pure virtualinherited |
Get the element at position 'pos' as a character.
pos | The position of the character to retrieve. |
Implemented in bpp::Sequence, bpp::EventDrivenIntSymbolList, and bpp::IntSymbolList.
|
overridevirtualinherited |
Get the element at position 'pos' as a character.
pos | The position of the character to retrieve. |
Reimplemented from bpp::IntSymbolList.
Definition at line 134 of file IntSymbolList.cpp.
|
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().
|
inlineoverridevirtualinherited |
Get the comments.
Implements bpp::Commentable.
Definition at line 79 of file Commentable.h.
References bpp::SimpleCommentable::comments_.
Referenced by bpp::SequenceWithQualityTools::concatenate(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::createEmptyContainer(), bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::TemplateVectorSequenceContainer< SequenceType >::createEmptyContainer(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::createEmptyContainer(), bpp::SequenceWithAnnotationTools::createMaskAnnotation(), bpp::SequenceWithAnnotation::operator=(), bpp::SequenceWithQualityTools::subseq(), bpp::Pasta::writeSequence(), and bpp::Fasta::writeSequence().
|
pure virtualinherited |
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
Referenced by bpp::Sequence::append(), bpp::SequenceWithQualityTools::concatenate(), bpp::SequenceWithQualityTools::invert(), bpp::SequenceWithAnnotation::merge(), bpp::ProbabilisticSymbolList::operator=(), and bpp::Sequence::operator=().
|
inlineoverridevirtualinherited |
Implements bpp::TemplateCoreSymbolListInterface< T >.
Definition at line 131 of file SymbolList.h.
|
pure virtualinherited |
Get the element at position 'pos' as a character.
pos | The position of the character to retrieve. |
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
|
inlineoverridevirtualinherited |
Get the element at position 'pos' as a character.
pos | The position of the character to retrieve. |
Implements bpp::TemplateCoreSymbolListInterface< T >.
Definition at line 173 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Implements bpp::TemplateEventDrivenCoreSymbolListInterface< T >.
Definition at line 374 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Implements bpp::TemplateEventDrivenCoreSymbolListInterface< T >.
Definition at line 386 of file SymbolList.h.
|
pure virtualinherited |
Get the name of this sequence.
Implemented in bpp::AbstractCoreSequence.
Referenced by bpp::SequenceTools::combineSequences(), bpp::SequenceTools::concatenate(), bpp::AllelicAlphabet::convertFromStateAlphabet(), bpp::SequenceTools::getPutativeHaplotypes(), bpp::AbstractCoreSequence::operator=(), bpp::CodonAlphabet::reverse(), bpp::WordAlphabet::reverse(), bpp::NucleicAcidsReplication::reverse(), bpp::AbstractReverseTransliterator::reverse(), bpp::SequenceTools::RNYslice(), bpp::SequenceTools::subseq(), bpp::SequenceTools::subtractHaplotype(), bpp::NucleicAcidsReplication::translate(), bpp::AbstractTransliterator::translate(), bpp::CodonAlphabet::translate(), and bpp::WordAlphabet::translate().
|
inlineoverridevirtualinherited |
Get the name of this sequence.
Implements bpp::CoreSequenceInterface.
Definition at line 170 of file CoreSequence.h.
References bpp::AbstractCoreSequence::name_.
Referenced by bpp::SequenceWithQualityTools::concatenate(), bpp::SequenceWithAnnotationTools::createMaskAnnotation(), bpp::SequenceWithAnnotation::merge(), bpp::SequenceWithAnnotation::operator=(), bpp::SequenceWithQualityTools::subseq(), bpp::Clustal::writeAlignment(), bpp::Pasta::writeSequence(), and bpp::Fasta::writeSequence().
|
inlineoverridevirtualinherited |
Implements bpp::TemplateEventDrivenCoreSymbolListInterface< T >.
Definition at line 365 of file SymbolList.h.
|
inline |
Get the whole quality scores.
Definition at line 548 of file SequenceWithQuality.h.
References qualScores_.
Referenced by bpp::SequenceWithQualityTools::complement(), bpp::SequenceWithQualityTools::concatenate(), bpp::SequenceWithQualityTools::invert(), bpp::SequenceWithQualityTools::removeGaps(), bpp::SequenceWithQualityTools::reverseTranscript(), and bpp::SequenceWithQualityTools::transcript().
|
inline |
Get the quality score.
pos | The position where the quality is read |
IndexOutOfBoundsException | if pos is greater than the sequence size |
Definition at line 521 of file SequenceWithQuality.h.
References qualScores_.
Referenced by bpp::SequenceWithQualityTools::subseq().
|
pure virtualinherited |
get value of a state at a position
position | position in the list |
state | state in the alphabet |
Implemented in bpp::Sequence, bpp::ProbabilisticSequence, bpp::ProbabilisticSymbolList, bpp::IntSymbolList, bpp::CoreSiteInterface, bpp::Site, and bpp::ProbabilisticSite.
Referenced by bpp::ProbabilisticSymbolList::ProbabilisticSymbolList().
|
inlineoverridevirtualinherited |
get value of a state at a position
position | position in the list |
state | state in the alphabet |
Implements bpp::CruxSymbolListInterface.
Reimplemented in bpp::Sequence, and bpp::Site.
Definition at line 210 of file IntSymbolList.h.
References bpp::AbstractTemplateSymbolList< int >::content_, and bpp::AbstractTemplateSymbolList< int >::getAlphabet().
|
pure virtualinherited |
checked access to a character in list.
pos | The position to retrieve. |
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
Referenced by bpp::SequenceTools::combineSequences(), bpp::SequenceTools::complement(), bpp::SequenceTools::findFirstOf(), bpp::SymbolListTools::getGCContent(), bpp::SequenceTools::getPercentIdentity(), bpp::SequenceTools::invert(), bpp::SequenceTools::invertComplement(), bpp::NucleicAcidsReplication::reverse(), bpp::AbstractReverseTransliterator::reverse(), bpp::SequenceTools::subtractHaplotype(), bpp::NucleicAcidsReplication::translate(), and bpp::AbstractTransliterator::translate().
|
inlineoverridevirtualinherited |
checked access to a character in list.
pos | The position to retrieve. |
Implements bpp::TemplateCoreSymbolListInterface< T >.
Definition at line 180 of file SymbolList.h.
|
inlinevirtualinherited |
Definition at line 355 of file SequenceWithAnnotation.h.
References bpp::AbstractTemplateEventDrivenSymbolList< int >::getNumberOfListeners(), bpp::SequenceAnnotation::getType(), and bpp::AbstractTemplateEventDrivenSymbolList< int >::listener().
|
inlineoverridevirtualinherited |
Implements bpp::TemplateEventDrivenCoreSymbolListInterface< T >.
Definition at line 367 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Implements bpp::TemplateEventDrivenCoreSymbolListInterface< T >.
Definition at line 379 of file SymbolList.h.
|
virtualinherited |
Merge a sequence with the current one.
Sequences must have the same name and alphabets. Only first sequence's commentaries are kept. Annotations that could not be merged will not be added in the concatenated sequence. See the documentation of each annotation class for more details.
swa | The sequence to merge with. |
AlphabetMismatchException | If the two alphabets do not match. |
Exception | If the sequence names do not match. |
Definition at line 166 of file SequenceWithAnnotation.cpp.
References bpp::SequenceWithAnnotation::annotation(), bpp::SequenceAnnotation::clone(), bpp::CruxSymbolListInterface::getAlphabet(), bpp::SequenceWithAnnotation::getAnnotationTypes(), bpp::TemplateCoreSymbolListInterface< T >::getContent(), and bpp::AbstractCoreSequence::getName().
|
pure virtualinherited |
get value of a state at a position
Short-cut for getStateValueAt.
position | position in the list |
state | state in the alphabet |
Implemented in bpp::ProbabilisticSymbolList, and bpp::IntSymbolList.
|
inlineoverridevirtualinherited |
get value of a state at a position
Short-cut for getStateValueAt.
position | position in the list |
state | state in the alphabet |
Implements bpp::CruxSymbolListInterface.
Definition at line 218 of file IntSymbolList.h.
References bpp::AbstractTemplateSymbolList< int >::content_, and bpp::AbstractTemplateSymbolList< int >::getAlphabet().
|
inline |
Definition at line 478 of file SequenceWithQuality.h.
References bpp::SequenceWithAnnotation::annotation(), bpp::SequenceWithAnnotation::operator=(), bpp::SequenceQuality::QUALITY_SCORE, and qualScores_.
|
pure virtualinherited |
Operator [] overloaded for quick access to a character in list.
pos | The position to retrieve. |
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
|
inlineoverridevirtualinherited |
Operator [] overloaded for quick access to a character in list.
pos | The position to retrieve. |
Implements bpp::TemplateCoreSymbolListInterface< T >.
Definition at line 187 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Operator [] overloaded for quick access to a character in list.
pos | The position to retrieve. |
Implements bpp::TemplateCoreSymbolListInterface< T >.
Definition at line 189 of file SymbolList.h.
|
pure virtualinherited |
Operator [] overloaded for quick access to a character in list.
pos | The position to retrieve. |
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::TemplateEventDrivenCoreSymbolListInterface< T >.
Definition at line 497 of file SymbolList.h.
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::TemplateEventDrivenCoreSymbolListInterface< T >.
Definition at line 496 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Definition at line 396 of file SymbolList.h.
|
pure virtualinherited |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >.
|
inlineoverridevirtualinherited |
Set the comments.
comments | The new comments. |
Implements bpp::Commentable.
Definition at line 86 of file Commentable.h.
References bpp::SimpleCommentable::comments_.
Referenced by bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::TemplateVectorSequenceContainer< SequenceType >::createEmptyContainer(), bpp::Pasta::nextSequence(), bpp::Fasta::nextSequence(), bpp::AbstractCoreSequence::operator=(), bpp::SequenceWithAnnotation::operator=(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::TemplateVectorSequenceContainer< SequenceType >::operator=(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::TemplateAlignedSequenceContainer(), 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().
|
overridevirtualinherited |
Set the whole content of the sequence.
sequence | The new content of the sequence. |
Implements bpp::SequenceInterface.
Definition at line 20 of file SequenceWithAnnotation.cpp.
References bpp::StringSequenceTools::codeSequence(), and bpp::TextTools::removeWhiteSpaces().
|
inlineoverridevirtualinherited |
Reimplemented from bpp::EventDrivenIntSymbolList.
Definition at line 315 of file SequenceWithAnnotation.h.
References bpp::IntSymbolListInterface::setContent().
|
inlineoverridevirtualinherited |
Set the whole content of the list.
list | The new content of the list. |
Reimplemented from bpp::EventDrivenIntSymbolList.
Definition at line 310 of file SequenceWithAnnotation.h.
References bpp::IntSymbolListInterface::setContent().
|
pure virtualinherited |
Set the whole content of the list.
list | The new content of the list. |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >, and bpp::AbstractTemplateSymbolList< T >.
|
inherited |
Set the whole content of the list.
list | The new content of the list. |
Referenced by bpp::EventDrivenIntSymbolList::EventDrivenIntSymbolList(), bpp::IntSymbolList::IntSymbolList(), bpp::SequenceWithAnnotation::operator=(), bpp::Sequence::operator=(), bpp::Sequence::Sequence(), bpp::SequenceWithAnnotation::SequenceWithAnnotation(), bpp::Sequence::setContent(), and bpp::SequenceWithAnnotation::setContent().
|
inlineoverrideinherited |
Set the element at position 'pos' to character 'c'.
pos | The position of the character to set. |
c | The value of the element. |
Definition at line 165 of file SymbolList.h.
|
inlineoverridevirtualinherited |
Set the element at position 'pos' to character 'c'.
pos | The position of the character to set. |
c | The value of the element. |
Definition at line 352 of file SymbolList.h.
|
overridevirtualinherited |
Set the element at position 'pos' to character 'c'.
pos | The position of the character to set. |
c | The value of the element, given as a string. |
Reimplemented from bpp::IntSymbolList.
Definition at line 127 of file IntSymbolList.cpp.
References bpp::AbstractTemplateEventDrivenSymbolList< T >::setElement().
|
pure virtualinherited |
Set the element at position 'pos' to character 'c'.
pos | The position of the character to set. |
c | The value of the element, given as a string. |
Implemented in bpp::EventDrivenIntSymbolList, and bpp::IntSymbolList.
Referenced by bpp::SequenceTools::complement(), bpp::SequenceTools::invert(), bpp::SequenceTools::invertComplement(), and bpp::SequenceTools::replaceStopsWithGaps().
|
inlineoverrideinherited |
Definition at line 165 of file SymbolList.h.
|
pure virtualinherited |
Set the element at position 'pos' to character 'c'.
pos | The position of the character to set. |
c | The value of the element. |
Implemented in bpp::AbstractTemplateEventDrivenSymbolList< T >, and bpp::AbstractTemplateSymbolList< T >.
|
inherited |
Set the element at position 'pos' to character 'c'.
pos | The position of the character to set. |
c | The value of the element. |
|
inlineoverridevirtualinherited |
Set the name of this sequence.
name | The new name of the sequence. |
Implements bpp::CoreSequenceInterface.
Definition at line 172 of file CoreSequence.h.
References bpp::AbstractCoreSequence::name_.
Referenced by bpp::Pasta::nextSequence(), bpp::PhredPoly::nextSequence(), bpp::Fasta::nextSequence(), bpp::PhredPhd::nextSequence(), and bpp::SequenceWithAnnotation::operator=().
|
pure virtualinherited |
Set the name of this sequence.
name | The new name of the sequence. |
Implemented in bpp::AbstractCoreSequence.
|
inline |
Set the whole quality scores.
quality | The vector of quality scores |
DimensionException | if the quality vector does not feet the sequence size |
Definition at line 536 of file SequenceWithQuality.h.
References qualScores_.
Referenced by bpp::PhredPhd::nextSequence().
|
inline |
Set the quality score.
pos | The position where the quality must be set |
quality | The quality value |
IndexOutOfBoundsException | if pos is greater than the sequence size |
Definition at line 506 of file SequenceWithQuality.h.
References qualScores_.
|
overridevirtualinherited |
Set up the size of a sequence from the left side.
All new characters are filled with gaps. If the specified size is < to the sequence size, the sequence will be truncated.
newSize | The new size of the sequence. |
Implements bpp::CoreSequenceInterface.
Definition at line 60 of file SequenceWithAnnotation.cpp.
|
overridevirtualinherited |
Set up the size of a sequence from the right side.
All new characters are filled with gaps. If the specified size is < to the sequence size, the sequence will be truncated.
newSize | The new size of the sequence. |
Implements bpp::CoreSequenceInterface.
Definition at line 33 of file SequenceWithAnnotation.cpp.
|
inlineoverridevirtualinherited |
Randomly shuffle the content of the list, with linear complexity.
Implements bpp::CruxSymbolListInterface.
Definition at line 191 of file SymbolList.h.
|
pure virtualinherited |
Randomly shuffle the content of the list, with linear complexity.
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
|
pure virtualinherited |
Get the number of elements in the list.
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, and bpp::ProbabilisticSymbolList.
Referenced by bpp::AbstractTemplateSymbolList< T >::AbstractTemplateSymbolList(), addElement(), bpp::SequenceWithAnnotation::append(), bpp::SequenceTools::areSequencesIdentical(), bpp::SymbolListTools::areSymbolListsIdentical(), bpp::SequenceTools::bowkerTest(), bpp::SymbolListTools::changeGapsToUnknownCharacters(), bpp::SymbolListTools::changeUnresolvedCharactersToGaps(), bpp::SequenceTools::combineSequences(), bpp::SequenceTools::complement(), bpp::SiteContainerTools::computeSimilarity(), bpp::SequenceTools::concatenate(), bpp::SequenceTools::findFirstOf(), bpp::SequenceTools::getCDS(), bpp::GeneticCode::getCodingSequence(), bpp::SymbolListTools::getCounts(), bpp::SymbolListTools::getCountsResolveUnknowns(), bpp::SymbolListTools::getFrequencies(), bpp::SymbolListTools::getGCContent(), bpp::SymbolListTools::getMajorAllele(), bpp::SymbolListTools::getMajorAlleleFrequency(), bpp::SymbolListTools::getMinorAllele(), bpp::SymbolListTools::getMinorAlleleFrequency(), bpp::SequenceTools::getNumberOfCompleteSites(), bpp::SymbolListTools::getNumberOfDistinctCharacters(), bpp::SymbolListTools::getNumberOfDistinctPositions(), bpp::SymbolListTools::getNumberOfPositionsWithoutGap(), bpp::SequenceTools::getNumberOfSites(), bpp::SequenceTools::getNumberOfUnresolvedSites(), bpp::SequenceTools::getPercentIdentity(), bpp::SequenceTools::getPutativeHaplotypes(), bpp::SequenceTools::getSequenceWithCompleteSites(), bpp::SequenceTools::getSequenceWithoutGaps(), bpp::SequenceTools::getSequenceWithoutStops(), bpp::SymbolListTools::hasGap(), bpp::SymbolListTools::hasSingleton(), bpp::SymbolListTools::hasUnknown(), bpp::SymbolListTools::hasUnresolved(), bpp::SymbolListTools::heterozygosity(), bpp::SequenceTools::invert(), bpp::SequenceTools::invertComplement(), bpp::SymbolListTools::isComplete(), bpp::SymbolListTools::isConstant(), bpp::SymbolListTools::isDoubleton(), bpp::SymbolListTools::isGapOnly(), bpp::SymbolListTools::isGapOrUnresolvedOnly(), bpp::SymbolListTools::isParsimonyInformativeSite(), bpp::SymbolListTools::isTriplet(), bpp::SequenceMask::isValidWith(), bpp::SequenceQuality::isValidWith(), bpp::SymbolListTools::jointEntropy(), bpp::SymbolListTools::mutualInformation(), bpp::SymbolListTools::numberOfGaps(), bpp::SymbolListTools::numberOfUnresolved(), bpp::AbstractTemplateSymbolList< T >::operator=(), bpp::SiteInterface::operator==(), bpp::SequenceWithQualityTools::removeGaps(), bpp::SequenceTools::removeGaps(), bpp::SequenceTools::removeStops(), bpp::SequenceTools::replaceStopsWithGaps(), bpp::CodonAlphabet::reverse(), bpp::WordAlphabet::reverse(), bpp::NucleicAcidsReplication::reverse(), bpp::AbstractReverseTransliterator::reverse(), bpp::SequenceTools::RNYslice(), bpp::SequenceWalker::SequenceWalker(), bpp::SequenceTools::subseq(), bpp::SequenceWithQualityTools::subseq(), bpp::SequenceTools::subtractHaplotype(), bpp::NucleicAcidsReplication::translate(), bpp::AbstractTransliterator::translate(), bpp::CodonAlphabet::translate(), bpp::WordAlphabet::translate(), bpp::SymbolListTools::variabilityFactorial(), and bpp::SymbolListTools::variabilityShannon().
|
inlineoverridevirtualinherited |
Get the number of elements in the list.
Implements bpp::CruxSymbolListInterface.
Definition at line 124 of file SymbolList.h.
|
pure virtualinherited |
Convert the list as a string.
This method is useful for dumping a list to a file or to the screen for display.
Implemented in bpp::AbstractTemplateSymbolList< T >, bpp::AbstractTemplateSymbolList< int >, bpp::Sequence, bpp::ProbabilisticSymbolList, bpp::EventDrivenIntSymbolList, and bpp::IntSymbolList.
|
overridevirtualinherited |
Convert the list as a string.
This method is useful for dumping a list to a file or to the screen for display.
Reimplemented from bpp::IntSymbolList.
Definition at line 105 of file IntSymbolList.cpp.
References bpp::StringSequenceTools::decodeSequence().
|
privateinherited |
The Alphabet attribute must be initialized in constructor and then can never be changed.
To apply another alphabet to a list you'll have to create a new list.
Definition at line 41 of file SymbolList.h.
|
protectedinherited |
Definition at line 50 of file Commentable.h.
Referenced by bpp::SimpleCommentable::clearComments(), bpp::SimpleCommentable::getComments(), bpp::SimpleCommentable::operator=(), and bpp::SimpleCommentable::setComments().
|
protectedinherited |
The list content.
Definition at line 47 of file SymbolList.h.
|
protectedinherited |
Contains the listeners.
Definition at line 218 of file SymbolList.h.
|
privateinherited |
The sequence name.
Definition at line 103 of file CoreSequence.h.
Referenced by bpp::AbstractCoreSequence::getName(), bpp::AbstractCoreSequence::operator=(), and bpp::AbstractCoreSequence::setName().
|
privateinherited |
Definition at line 212 of file SymbolList.h.
|
private |
Definition at line 185 of file SequenceWithQuality.h.
Referenced by addElement(), append(), getQualities(), getQuality(), operator=(), SequenceWithQuality(), setQualities(), and setQuality().