|
bpp-seq
2.1.0
|
#include <Bpp/Seq/SequenceWithAnnotationTools.h>
Inheritance diagram for bpp::SequenceMask:
Collaboration diagram for bpp::SequenceMask: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 bool | operator[] (size_t i) const |
| void | setMask (const std::vector< bool > &mask) |
| const std::vector< bool > & | getMask () const |
| void | setMask (size_t pos, bool mask) |
| void | setMask (size_t pos, const std::vector< bool > &mask) |
| bool | merge (const SequenceAnnotation &anno) |
| Merge the input annotation with the current one. More... | |
| SequenceAnnotation * | getPartAnnotation (size_t pos, size_t len) const throw (Exception) |
Constructors | |
| SequenceMask (size_t size=0, bool removable=true) | |
| Build a new SequenceMask object. More... | |
| SequenceMask (const std::vector< bool > &mask, bool removable=true) | |
| Build a new SequenceMask object. More... | |
Destructor | |
| virtual | ~SequenceMask () |
The Clonable interface | |
| SequenceMask * | clone () const |
Static Public Attributes | |
| static const std::string | MASK = "Boolean mask" |
Private Attributes | |
| bool | removable_ |
| std::vector< bool > | mask_ |
Definition at line 49 of file SequenceWithAnnotationTools.h.
|
inline |
Build a new SequenceMask object.
Build a new SequenceMask object and set the mask to false.
| size | The size of the sequence. |
| removable | Tell if this listener can be removed by the user. |
Definition at line 74 of file SequenceWithAnnotationTools.h.
Referenced by clone(), and getPartAnnotation().
|
inline |
Build a new SequenceMask object.
Build a new SequenceMask object and set the mask as a vector of bool.
| mask | The boolean mask |
| removable | Tell if this listener can be removed by the user. |
Definition at line 88 of file SequenceWithAnnotationTools.h.
|
inlinevirtual |
Definition at line 99 of file SequenceWithAnnotationTools.h.
|
virtual |
Implements bpp::SymbolListListener.
Definition at line 50 of file SequenceWithAnnotationTools.cpp.
|
virtual |
Implements bpp::SymbolListListener.
Definition at line 65 of file SequenceWithAnnotationTools.cpp.
|
virtual |
Implements bpp::SymbolListListener.
Definition at line 58 of file SequenceWithAnnotationTools.cpp.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 138 of file SequenceWithAnnotationTools.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 131 of file SequenceWithAnnotationTools.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 135 of file SequenceWithAnnotationTools.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 133 of file SequenceWithAnnotationTools.h.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 137 of file SequenceWithAnnotationTools.h.
|
inlinevirtual |
Implements bpp::SequenceAnnotation.
Definition at line 111 of file SequenceWithAnnotationTools.h.
References SequenceMask().
|
inline |
Definition at line 153 of file SequenceWithAnnotationTools.h.
References mask_.
Referenced by merge().
|
inlinevirtual |
| pos | Starting point of the region. |
| len | The length of the region, in number of positions. |
Implements bpp::SequenceAnnotation.
Definition at line 177 of file SequenceWithAnnotationTools.h.
References mask_, mask_, removable_, and SequenceMask().
|
inline |
Definition at line 140 of file SequenceWithAnnotationTools.h.
References mask_.
|
inlinevirtual |
Implements bpp::SequenceAnnotation.
Definition at line 121 of file SequenceWithAnnotationTools.h.
References MASK.
|
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 115 of file SequenceWithAnnotationTools.h.
References mask_, mask_, mask_, and bpp::SymbolList::size().
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 129 of file SequenceWithAnnotationTools.h.
References removable_.
|
inlinevirtual |
Implements bpp::SymbolListListener.
Definition at line 130 of file SequenceWithAnnotationTools.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 123 of file SequenceWithAnnotationTools.h.
References mask_, mask_, bpp::EdSymbolList::size(), and bpp::EdSymbolList::size().
|
inlinevirtual |
Merge the input annotation with the current one.
| anno | The annotation to fuse. |
Implements bpp::SequenceAnnotation.
Definition at line 167 of file SequenceWithAnnotationTools.h.
References bpp::VectorTools::append(), and getMask().
|
inline |
Definition at line 142 of file SequenceWithAnnotationTools.h.
References mask_.
|
inline |
Definition at line 144 of file SequenceWithAnnotationTools.h.
|
inline |
Definition at line 155 of file SequenceWithAnnotationTools.h.
References mask_, mask_, bpp::TextTools::toString(), and bpp::TextTools::toString().
|
inline |
Definition at line 161 of file SequenceWithAnnotationTools.h.
References mask_, mask_, bpp::TextTools::toString(), bpp::TextTools::toString(), and bpp::TextTools::toString().
|
static |
Definition at line 57 of file SequenceWithAnnotationTools.h.
Referenced by getType().
|
private |
Definition at line 54 of file SequenceWithAnnotationTools.h.
Referenced by getMask(), getPartAnnotation(), getPartAnnotation(), getSize(), init(), init(), init(), isValidWith(), isValidWith(), merge(), operator[](), setMask(), setMask(), setMask(), setMask(), setMask(), setMask(), setMask(), setMask(), and setMask().
|
private |
Definition at line 53 of file SequenceWithAnnotationTools.h.
Referenced by getPartAnnotation(), and isRemovable().