|
bpp-seq
2.2.0
|
The SequenceQuality class. More...
#include <Bpp/Seq/SequenceWithQuality.h>
Inheritance diagram for bpp::SequenceQuality:
Collaboration diagram for bpp::SequenceQuality:Public Member Functions | |
| void | init (const Sequence &seq) |
| const std::string & | getType () const |
| bool | isValidWith (const SequenceWithAnnotation &sequence, bool throwException=true) const |
| Test is the annotation is valid for a given sequence. More... | |
| bool | isRemovable () const |
| bool | isShared () const |
| void | beforeSequenceChanged (const SymbolListEditionEvent &event) |
| void | afterSequenceChanged (const SymbolListEditionEvent &event) |
| void | beforeSequenceInserted (const SymbolListInsertionEvent &event) |
| void | afterSequenceInserted (const SymbolListInsertionEvent &event) |
| void | beforeSequenceDeleted (const SymbolListDeletionEvent &event) |
| void | afterSequenceDeleted (const SymbolListDeletionEvent &event) |
| void | beforeSequenceSubstituted (const SymbolListSubstitutionEvent &event) |
| void | afterSequenceSubstituted (const SymbolListSubstitutionEvent &event) |
| size_t | getSize () const |
| const int & | operator[] (size_t i) const |
| int & | operator[] (size_t i) |
| void | setScores (const std::vector< int > &scores) |
| const std::vector< int > & | getScores () const |
| void | setScore (size_t pos, int score) |
| void | setScores (size_t pos, const std::vector< int > &scores) |
| bool | merge (const SequenceAnnotation &anno) |
| Merge the input annotation with the current one. More... | |
| SequenceQuality * | getPartAnnotation (size_t pos, size_t len) const throw (Exception) |
Constructors | |
| SequenceQuality (size_t size=0, bool removable=true) | |
| Build a new SequenceQuality object. More... | |
| SequenceQuality (const std::vector< int > &quality, bool removable=true) | |
| Build a new SequenceQuality object. More... | |
Destructor | |
| virtual | ~SequenceQuality () |
The Clonable interface | |
| SequenceQuality * | clone () const |
Static Public Attributes | |
| static const std::string | QUALITY_SCORE = "Quality score" |
| static const int | DEFAULT_QUALITY_VALUE = 20 |
Private Attributes | |
| bool | removable_ |
| std::vector< int > | qualScores_ |
The SequenceQuality class.
This is a sequence with quality score associated to each element. The score is a signed int value that can represent the phred or the Solexa quality score for nucleic sequence.
Definition at line 65 of file SequenceWithQuality.h.
|
inline |
Build a new SequenceQuality object.
Build a new SequenceQuality object and set the quality scores to the default value DEFAULT_QUALITY_VALUE.
| size | The size of the sequence. |
| removable | Tell if this listener can be removed by the user. |
Definition at line 92 of file SequenceWithQuality.h.
Referenced by clone(), and getPartAnnotation().
|
inline |
Build a new SequenceQuality object.
Build a new SequenceQuality and assign quality scores from a vector of int.
| quality | The quality scores |
| removable | Tell if this listener can be removed by the user. |
Definition at line 106 of file SequenceWithQuality.h.
|
inlinevirtual |
Definition at line 120 of file SequenceWithQuality.h.
|
virtual |
Implements bpp::SymbolListListener.
Definition at line 55 of file SequenceWithQuality.cpp.
|
virtual |
Implements bpp::SymbolListListener.
Definition at line 72 of file SequenceWithQuality.cpp.
|
virtual |
Implements bpp::SymbolListListener.
Definition at line 63 of file SequenceWithQuality.cpp.
References bpp::SymbolListInsertionEvent::getLength().
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 159 of file SequenceWithQuality.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 152 of file SequenceWithQuality.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 156 of file SequenceWithQuality.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 154 of file SequenceWithQuality.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 158 of file SequenceWithQuality.h.
|
inlinevirtual |
Implements bpp::SequenceAnnotation.
Definition at line 132 of file SequenceWithQuality.h.
References SequenceQuality().
|
inlinevirtual | ||||||||||||||||||||
| pos | Starting point of the region. |
| len | The length of the region, in number of positions. |
Implements bpp::SequenceAnnotation.
Definition at line 199 of file SequenceWithQuality.h.
References qualScores_, removable_, and SequenceQuality().
|
inline |
Definition at line 175 of file SequenceWithQuality.h.
References qualScores_.
Referenced by bpp::SequenceWithQuality::getQualities(), and merge().
|
inline |
Definition at line 161 of file SequenceWithQuality.h.
References qualScores_.
Referenced by bpp::SequenceWithQuality::append(), bpp::SequenceWithQuality::getQuality(), and bpp::SequenceWithQuality::setQualities().
|
inlinevirtual |
Implements bpp::SequenceAnnotation.
Definition at line 142 of file SequenceWithQuality.h.
References QUALITY_SCORE.
|
inlinevirtual |
Creates a default annotation according to a given sequence.
| seq | The template sequence (typically the one with which the annotation will be attached). |
Implements bpp::SequenceAnnotation.
Definition at line 136 of file SequenceWithQuality.h.
References DEFAULT_QUALITY_VALUE, qualScores_, and bpp::SymbolList::size().
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 150 of file SequenceWithQuality.h.
References removable_.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 151 of file SequenceWithQuality.h.
|
inlinevirtual |
Test is the annotation is valid for a given sequence.
| sequence | The sequence to be validated against. |
| throwException | If set to yes, throw an exception if the sequence is not valid. |
Implements bpp::SequenceAnnotation.
Definition at line 144 of file SequenceWithQuality.h.
References qualScores_, and bpp::EdSymbolList::size().
|
inlinevirtual |
Merge the input annotation with the current one.
| anno | The annotation to fuse. |
Implements bpp::SequenceAnnotation.
Definition at line 189 of file SequenceWithQuality.h.
References getScores(), and qualScores_.
|
inline |
Definition at line 163 of file SequenceWithQuality.h.
References qualScores_.
|
inline |
Definition at line 164 of file SequenceWithQuality.h.
References qualScores_.
|
inline |
Definition at line 177 of file SequenceWithQuality.h.
References qualScores_.
Referenced by bpp::SequenceWithQuality::addElement(), and bpp::SequenceWithQuality::setQuality().
|
inline |
Definition at line 166 of file SequenceWithQuality.h.
References qualScores_.
Referenced by bpp::SequenceWithQuality::append(), and bpp::SequenceWithQuality::setQualities().
|
inline |
Definition at line 183 of file SequenceWithQuality.h.
References qualScores_.
|
static |
Definition at line 74 of file SequenceWithQuality.h.
Referenced by init().
|
static |
Definition at line 73 of file SequenceWithQuality.h.
Referenced by getType(), bpp::SequenceWithQuality::operator=(), and bpp::SequenceWithQuality::SequenceWithQuality().
|
private |
Definition at line 70 of file SequenceWithQuality.h.
Referenced by getPartAnnotation(), getScores(), getSize(), init(), isValidWith(), merge(), operator[](), setScore(), and setScores().
|
private |
Definition at line 69 of file SequenceWithQuality.h.
Referenced by getPartAnnotation(), and isRemovable().