bpp-seq3
3.0.0
|
#include <Bpp/Seq/SequenceWithAnnotationTools.h>
Public Member Functions | |
void | init (const Sequence &seq) override |
const std::string & | getType () const override |
bool | isValidWith (const SequenceWithAnnotation &sequence, bool throwException=true) const override |
Test is the annotation is valid for a given sequence. More... | |
bool | isRemovable () const override |
bool | isShared () const override |
void | beforeSequenceChanged (const IntSymbolListEditionEvent &event) override |
void | afterSequenceChanged (const IntSymbolListEditionEvent &event) override |
void | beforeSequenceInserted (const IntSymbolListInsertionEvent &event) override |
void | afterSequenceInserted (const IntSymbolListInsertionEvent &event) override |
void | beforeSequenceDeleted (const IntSymbolListDeletionEvent &event) override |
void | afterSequenceDeleted (const IntSymbolListDeletionEvent &event) override |
void | beforeSequenceSubstituted (const IntSymbolListSubstitutionEvent &event) override |
void | afterSequenceSubstituted (const IntSymbolListSubstitutionEvent &event) override |
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) override |
Merge the input annotation with the current one. More... | |
std::unique_ptr< SequenceAnnotation > | getPartAnnotation (size_t pos, size_t len) const override |
virtual void | beforeSequenceChanged (const CoreSymbolListEditionEvent< T > &event)=0 |
virtual void | afterSequenceChanged (const CoreSymbolListEditionEvent< T > &event)=0 |
virtual void | beforeSequenceInserted (const CoreSymbolListInsertionEvent< T > &event)=0 |
virtual void | afterSequenceInserted (const CoreSymbolListInsertionEvent< T > &event)=0 |
virtual void | beforeSequenceDeleted (const CoreSymbolListDeletionEvent< T > &event)=0 |
virtual void | afterSequenceDeleted (const CoreSymbolListDeletionEvent< T > &event)=0 |
virtual void | beforeSequenceSubstituted (const CoreSymbolListSubstitutionEvent< T > &event)=0 |
virtual void | afterSequenceSubstituted (const CoreSymbolListSubstitutionEvent< T > &event)=0 |
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 override |
Static Public Attributes | |
static const std::string | MASK = "Boolean mask" |
Private Attributes | |
bool | removable_ |
std::vector< bool > | mask_ |
Definition at line 16 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 40 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 54 of file SequenceWithAnnotationTools.h.
|
inlinevirtual |
Definition at line 65 of file SequenceWithAnnotationTools.h.
|
pure virtualinherited |
|
override |
Definition at line 15 of file SequenceWithAnnotationTools.cpp.
References bpp::CoreSymbolListEditionEvent< T >::getCoreSymbolList().
|
pure virtualinherited |
|
override |
Definition at line 31 of file SequenceWithAnnotationTools.cpp.
References bpp::CoreSymbolListDeletionEvent< T >::getLength(), and bpp::CoreSymbolListDeletionEvent< T >::getPosition().
|
pure virtualinherited |
|
override |
Definition at line 23 of file SequenceWithAnnotationTools.cpp.
References bpp::CoreSymbolListInsertionEvent< T >::getLength(), and bpp::CoreSymbolListInsertionEvent< T >::getPosition().
|
pure virtualinherited |
|
inlineoverride |
Definition at line 99 of file SequenceWithAnnotationTools.h.
|
pure virtualinherited |
|
inlineoverride |
Definition at line 92 of file SequenceWithAnnotationTools.h.
|
pure virtualinherited |
|
inlineoverride |
Definition at line 96 of file SequenceWithAnnotationTools.h.
|
pure virtualinherited |
|
inlineoverride |
Definition at line 94 of file SequenceWithAnnotationTools.h.
|
pure virtualinherited |
|
inlineoverride |
Definition at line 98 of file SequenceWithAnnotationTools.h.
|
inlineoverridevirtual |
Implements bpp::SequenceAnnotation.
Definition at line 72 of file SequenceWithAnnotationTools.h.
References SequenceMask().
|
inline |
Definition at line 115 of file SequenceWithAnnotationTools.h.
References mask_.
Referenced by merge().
|
inlineoverridevirtual |
pos | Starting point of the region. |
len | The length of the region, in number of positions. |
Implements bpp::SequenceAnnotation.
Definition at line 145 of file SequenceWithAnnotationTools.h.
References mask_, removable_, and SequenceMask().
|
inline |
Definition at line 101 of file SequenceWithAnnotationTools.h.
References mask_.
|
inlineoverridevirtual |
Implements bpp::SequenceAnnotation.
Definition at line 82 of file SequenceWithAnnotationTools.h.
References MASK.
|
inlineoverridevirtual |
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 76 of file SequenceWithAnnotationTools.h.
References mask_, and bpp::AbstractTemplateSymbolList< T >::size().
|
inlineoverridevirtual |
Implements bpp::CoreSymbolListListener< T >.
Definition at line 90 of file SequenceWithAnnotationTools.h.
References removable_.
|
inlineoverridevirtual |
Implements bpp::CoreSymbolListListener< T >.
Definition at line 91 of file SequenceWithAnnotationTools.h.
|
inlineoverridevirtual |
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 84 of file SequenceWithAnnotationTools.h.
References mask_, and bpp::CruxSymbolListInterface::size().
|
inlineoverridevirtual |
Merge the input annotation with the current one.
anno | The annotation to fuse. |
Implements bpp::SequenceAnnotation.
Definition at line 131 of file SequenceWithAnnotationTools.h.
References bpp::VectorTools::append(), getMask(), and mask_.
|
inline |
Definition at line 103 of file SequenceWithAnnotationTools.h.
References mask_.
|
inline |
Definition at line 105 of file SequenceWithAnnotationTools.h.
References mask_.
|
inline |
Definition at line 117 of file SequenceWithAnnotationTools.h.
References mask_, and bpp::TextTools::toString().
|
inline |
Definition at line 124 of file SequenceWithAnnotationTools.h.
References mask_, and bpp::TextTools::toString().
|
static |
Definition at line 24 of file SequenceWithAnnotationTools.h.
Referenced by getType().
|
private |
Definition at line 21 of file SequenceWithAnnotationTools.h.
Referenced by getMask(), getPartAnnotation(), getSize(), init(), isValidWith(), merge(), operator[](), and setMask().
|
private |
Definition at line 20 of file SequenceWithAnnotationTools.h.
Referenced by getPartAnnotation(), and isRemovable().