Interface for sequence annotations.
More...
#include <Bpp/Seq/SequenceWithAnnotation.h>
Interface for sequence annotations.
Definition at line 24 of file SequenceWithAnnotation.h.
◆ afterSequenceChanged()
◆ afterSequenceDeleted()
◆ afterSequenceInserted()
◆ afterSequenceSubstituted()
◆ beforeSequenceChanged()
◆ beforeSequenceDeleted()
◆ beforeSequenceInserted()
◆ beforeSequenceSubstituted()
◆ clone()
◆ getPartAnnotation()
virtual std::unique_ptr<SequenceAnnotation> bpp::SequenceAnnotation::getPartAnnotation |
( |
size_t |
pos, |
|
|
size_t |
len |
|
) |
| const |
|
pure virtual |
- Returns
- A new annotation corresponding to a part of the sequence. The implementation of this highly depends on the annotation type, and might not be supported.
- Parameters
-
pos | Starting point of the region. |
len | The length of the region, in number of positions. |
Implemented in bpp::SequenceQuality, and bpp::SequenceMask.
◆ getType()
virtual const std::string& bpp::SequenceAnnotation::getType |
( |
| ) |
const |
|
pure virtual |
◆ init()
virtual void bpp::SequenceAnnotation::init |
( |
const Sequence & |
seq | ) |
|
|
pure virtual |
Creates a default annotation according to a given sequence.
- Parameters
-
seq | The template sequence (typically the one with which the annotation will be attached). |
Implemented in bpp::SequenceQuality, and bpp::SequenceMask.
◆ isRemovable()
◆ isShared()
◆ isValidWith()
virtual bool bpp::SequenceAnnotation::isValidWith |
( |
const SequenceWithAnnotation & |
sequence, |
|
|
bool |
throwException = true |
|
) |
| const |
|
pure virtual |
Test is the annotation is valid for a given sequence.
- Parameters
-
sequence | The sequence to be validated against. |
throwException | If set to yes, throw an exception if the sequence is not valid. |
- Returns
- true if this annotation is compliant with the given sequence.
Implemented in bpp::SequenceQuality, and bpp::SequenceMask.
◆ merge()
Merge the input annotation with the current one.
- Parameters
-
anno | The annotation to fuse. |
- Returns
- true if the fusion was possible and successful.
Implemented in bpp::SequenceQuality, and bpp::SequenceMask.
The documentation for this class was generated from the following file: