bpp-seq-omics
2.4.1
|
The base interface for sequence features. More...
#include <Bpp/Seq/Feature/SequenceFeature.h>
Public Member Functions | |
virtual SequenceFeature * | clone () const =0 |
virtual const std::string & | getId () const =0 |
virtual void | setId (const std::string &id)=0 |
virtual const std::string & | getSequenceId () const =0 |
virtual void | setSequenceId (const std::string &id)=0 |
virtual const std::string & | getSource () const =0 |
virtual void | setSource (const std::string &source)=0 |
virtual const std::string & | getType () const =0 |
virtual void | setType (const std::string &type)=0 |
virtual const size_t | getStart () const =0 |
virtual const size_t | getEnd () const =0 |
virtual const size_t | size () const |
virtual bool | isStranded () const =0 |
virtual bool | isNegativeStrand () const =0 |
virtual void | invert ()=0 |
virtual SeqRange | getRange () const =0 |
virtual bool | isEmpty () const |
virtual bool | isPoint () const |
virtual bool | overlap (const SequenceFeature &feat) const =0 |
virtual bool | overlap (const SeqRange &range) const =0 |
virtual bool | includes (const SeqRange &range) const =0 |
virtual bool | isIncludedIn (const SeqRange &range) const =0 |
virtual const double & | getScore () const =0 |
virtual void | setScore (double score)=0 |
virtual const std::string & | getAttribute (const std::string &attribute) const =0 |
virtual std::string & | getAttribute (const std::string &attribute)=0 |
virtual std::set< std::string > | getAttributeList () const =0 |
virtual void | setAttribute (const std::string &attribute, const std::string &value)=0 |
Set the value of an attribute. More... | |
virtual void | removeAttribute (const std::string &attribute)=0 |
Static Public Attributes | |
static const std::string | NO_ATTRIBUTE_SET = "" |
The base interface for sequence features.
This interface provides the most generic information common to all features, that is:
Subclasses inheriting this interface provide specialisations for various types of annotations. Depending on the file format of annotations, not all types of annotations may be supported.
Definition at line 136 of file SequenceFeature.h.
|
pure virtual |
Implements bpp::Clonable.
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::SequenceFeatureSet::addFeature().
|
pure virtual |
attribute | The name of the attribute to retrieve. |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::BedGraphFeatureReader::toString(), and bpp::GffFeatureReader::toString().
|
pure virtual |
attribute | The name of the attribute to retrieve. |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by size(), bpp::BedGraphFeatureReader::toString(), and bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::BasicSequenceFeature::overlap().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::BasicSequenceFeature::overlap(), bpp::BedGraphFeatureReader::toString(), and bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by size(), bpp::BedGraphFeatureReader::toString(), and bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
Change the orientation of the feature.
Implemented in bpp::BasicSequenceFeature.
|
inlinevirtual |
Definition at line 222 of file SequenceFeature.h.
References size().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::GffFeatureReader::toString().
|
inlinevirtual |
Definition at line 227 of file SequenceFeature.h.
References size().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
Referenced by bpp::GffFeatureReader::toString().
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
attribute | The name of the attribute to be removed. |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
Set the value of an attribute.
attribute | The name of the attribute to set. |
value | The value of the attribute to set. |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
id | A std::string representing the id. |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
score | A double representing the score of this feature. |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
id | A std::string representing the id of the reference. |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
source | A std::string representing the source of the feature. |
Implemented in bpp::BasicSequenceFeature.
|
pure virtual |
type | A std::string representing the type of this feature. |
Implemented in bpp::BasicSequenceFeature.
|
inlinevirtual |
Definition at line 195 of file SequenceFeature.h.
References getEnd(), and getStart().
|
static |
Definition at line 140 of file SequenceFeature.h.
Referenced by bpp::BasicSequenceFeature::getAttribute().