bpp-seq-omics
2.2.0
|
A very simple implementation of the SequenceFeature class. More...
#include <Bpp/Seq/Feature/SequenceFeature.h>
Public Member Functions | |
BasicSequenceFeature (const std::string &id, const std::string &seqId, const std::string &source, const std::string &type, size_t start, size_t end, char strand, double score=-1) | |
virtual BasicSequenceFeature * | clone () const |
const std::string & | getId () const |
void | setId (const std::string &id) |
const std::string & | getSequenceId () const |
void | setSequenceId (const std::string &sid) |
const std::string & | getSource () const |
void | setSource (const std::string &source) |
const std::string & | getType () const |
void | setType (const std::string &type) |
const size_t | getStart () const |
const size_t | getEnd () const |
bool | isStranded () const |
bool | isNegativeStrand () const |
void | invert () |
const double & | getScore () const |
void | setScore (double score) |
const std::string & | getAttribute (const std::string &attribute) const |
std::string & | getAttribute (const std::string &attribute) |
void | setAttribute (const std::string &attribute, const std::string &value) |
Set the value of an attribute. More... | |
std::set< std::string > | getAttributeList () const |
void | removeAttribute (const std::string &attribute) |
SeqRange | getRange () const |
bool | overlap (const SequenceFeature &feat) const |
Static Public Attributes | |
static const std::string | NO_ATTRIBUTE_SET = "" |
Protected Attributes | |
std::string | id_ |
std::string | sequenceId_ |
std::string | source_ |
std::string | type_ |
SeqRange | range_ |
double | score_ |
std::map< std::string, std::string > | attributes_ |
A very simple implementation of the SequenceFeature class.
It uses a hash map for storing attributes.
Definition at line 253 of file SequenceFeature.h.
|
inline |
Definition at line 267 of file SequenceFeature.h.
Referenced by clone().
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 282 of file SequenceFeature.h.
References BasicSequenceFeature().
|
inlinevirtual |
attribute | The name of the attribute to retrieve. |
Implements bpp::SequenceFeature.
Definition at line 303 of file SequenceFeature.h.
References attributes_, and bpp::SequenceFeature::NO_ATTRIBUTE_SET.
|
inlinevirtual |
attribute | The name of the attribute to retrieve. |
Implements bpp::SequenceFeature.
Definition at line 311 of file SequenceFeature.h.
References attributes_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 319 of file SequenceFeature.h.
References attributes_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 294 of file SequenceFeature.h.
References range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 285 of file SequenceFeature.h.
References id_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 334 of file SequenceFeature.h.
References range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 300 of file SequenceFeature.h.
References score_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 287 of file SequenceFeature.h.
References sequenceId_.
Referenced by bpp::GtfFeatureReader::getFeaturesOfSequence(), and bpp::GffFeatureReader::getFeaturesOfSequence().
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 289 of file SequenceFeature.h.
References source_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 293 of file SequenceFeature.h.
References range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 291 of file SequenceFeature.h.
References type_.
Referenced by bpp::GtfFeatureReader::getFeaturesOfType(), and bpp::GffFeatureReader::getFeaturesOfType().
|
inlinevirtual |
Change the orientation of the feature.
Implements bpp::SequenceFeature.
Definition at line 297 of file SequenceFeature.h.
References bpp::SeqRange::invert(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 296 of file SequenceFeature.h.
References bpp::SeqRange::isNegativeStrand(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 295 of file SequenceFeature.h.
References bpp::SeqRange::isStranded(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 338 of file SequenceFeature.h.
References bpp::SequenceFeature::getRange(), bpp::SequenceFeature::getSequenceId(), range_, and sequenceId_.
|
inlinevirtual |
attribute | The name of the attribute to be removed. |
Implements bpp::SequenceFeature.
Definition at line 327 of file SequenceFeature.h.
References attributes_.
|
inlinevirtual |
Set the value of an attribute.
attribute | The name of the attribute to set. |
value | The value of the attribute to set. |
Implements bpp::SequenceFeature.
Definition at line 315 of file SequenceFeature.h.
References attributes_.
Referenced by bpp::GtfFeatureReader::nextFeature(), and bpp::GffFeatureReader::nextFeature().
|
inlinevirtual |
id | A std::string representing the id. |
Implements bpp::SequenceFeature.
Definition at line 286 of file SequenceFeature.h.
References id_.
|
inlinevirtual |
score | A double representing the score of this feature. |
Implements bpp::SequenceFeature.
Definition at line 301 of file SequenceFeature.h.
References score_.
|
inlinevirtual |
id | A std::string representing the id of the reference. |
Implements bpp::SequenceFeature.
Definition at line 288 of file SequenceFeature.h.
References sequenceId_.
|
inlinevirtual |
source | A std::string representing the source of the feature. |
Implements bpp::SequenceFeature.
Definition at line 290 of file SequenceFeature.h.
References source_.
|
inlinevirtual |
type | A std::string representing the type of this feature. |
Implements bpp::SequenceFeature.
Definition at line 292 of file SequenceFeature.h.
References type_.
|
mutableprotected |
Definition at line 263 of file SequenceFeature.h.
Referenced by getAttribute(), getAttributeList(), removeAttribute(), and setAttribute().
|
protected |
Definition at line 257 of file SequenceFeature.h.
|
staticinherited |
Definition at line 130 of file SequenceFeature.h.
Referenced by getAttribute().
|
protected |
Definition at line 261 of file SequenceFeature.h.
Referenced by getEnd(), getRange(), getStart(), invert(), isNegativeStrand(), isStranded(), and overlap().
|
protected |
Definition at line 262 of file SequenceFeature.h.
Referenced by getScore(), and setScore().
|
protected |
Definition at line 258 of file SequenceFeature.h.
Referenced by getSequenceId(), overlap(), and setSequenceId().
|
protected |
Definition at line 259 of file SequenceFeature.h.
Referenced by getSource(), and setSource().
|
protected |
Definition at line 260 of file SequenceFeature.h.