bpp-seq-omics
2.4.1
|
A very simple implementation of the SequenceFeature class. More...
#include <Bpp/Seq/Feature/SequenceFeature.h>
Public Member Functions | |
BasicSequenceFeature () | |
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 |
bool | overlap (const SeqRange &range) const |
virtual bool | includes (const SeqRange &range) const |
virtual bool | isIncludedIn (const SeqRange &range) const |
virtual const size_t | size () const |
virtual bool | isEmpty () const |
virtual bool | isPoint () 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 295 of file SequenceFeature.h.
|
inline |
Definition at line 309 of file SequenceFeature.h.
Referenced by clone().
|
inline |
Definition at line 311 of file SequenceFeature.h.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 326 of file SequenceFeature.h.
References BasicSequenceFeature().
|
inlinevirtual |
attribute | The name of the attribute to retrieve. |
Implements bpp::SequenceFeature.
Definition at line 355 of file SequenceFeature.h.
References attributes_.
|
inlinevirtual |
attribute | The name of the attribute to retrieve. |
Implements bpp::SequenceFeature.
Definition at line 347 of file SequenceFeature.h.
References attributes_, and bpp::SequenceFeature::NO_ATTRIBUTE_SET.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 363 of file SequenceFeature.h.
References attributes_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 338 of file SequenceFeature.h.
References bpp::Range< class >::end(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 329 of file SequenceFeature.h.
References id_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 378 of file SequenceFeature.h.
References range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 344 of file SequenceFeature.h.
References score_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 331 of file SequenceFeature.h.
References sequenceId_.
Referenced by bpp::BedGraphFeatureReader::getFeaturesOfSequence(), bpp::GffFeatureReader::getFeaturesOfSequence(), and bpp::GtfFeatureReader::getFeaturesOfSequence().
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 333 of file SequenceFeature.h.
References source_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 337 of file SequenceFeature.h.
References bpp::Range< class >::begin(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 335 of file SequenceFeature.h.
References type_.
Referenced by bpp::BedGraphFeatureReader::getFeaturesOfType(), bpp::GffFeatureReader::getFeaturesOfType(), and bpp::GtfFeatureReader::getFeaturesOfType().
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 393 of file SequenceFeature.h.
References bpp::Range< class >::contains(), and range_.
|
inlinevirtual |
Change the orientation of the feature.
Implements bpp::SequenceFeature.
Definition at line 341 of file SequenceFeature.h.
References bpp::SeqRange::invert(), and range_.
|
inlinevirtualinherited |
Definition at line 222 of file SequenceFeature.h.
References bpp::SequenceFeature::size().
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 397 of file SequenceFeature.h.
References bpp::Range< class >::contains(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 340 of file SequenceFeature.h.
References bpp::SeqRange::isNegativeStrand(), and range_.
|
inlinevirtualinherited |
Definition at line 227 of file SequenceFeature.h.
References bpp::SequenceFeature::size().
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 339 of file SequenceFeature.h.
References bpp::SeqRange::isStranded(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 389 of file SequenceFeature.h.
References bpp::Range< class >::overlap(), and range_.
|
inlinevirtual |
Implements bpp::SequenceFeature.
Definition at line 382 of file SequenceFeature.h.
References bpp::SequenceFeature::getRange(), bpp::SequenceFeature::getSequenceId(), bpp::Range< class >::overlap(), range_, and sequenceId_.
|
inlinevirtual |
attribute | The name of the attribute to be removed. |
Implements bpp::SequenceFeature.
Definition at line 371 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 359 of file SequenceFeature.h.
References attributes_.
Referenced by bpp::BedGraphFeatureReader::nextFeature(), bpp::GffFeatureReader::nextFeature(), and bpp::GtfFeatureReader::nextFeature().
|
inlinevirtual |
id | A std::string representing the id. |
Implements bpp::SequenceFeature.
Definition at line 330 of file SequenceFeature.h.
References id_.
|
inlinevirtual |
score | A double representing the score of this feature. |
Implements bpp::SequenceFeature.
Definition at line 345 of file SequenceFeature.h.
References score_.
|
inlinevirtual |
id | A std::string representing the id of the reference. |
Implements bpp::SequenceFeature.
Definition at line 332 of file SequenceFeature.h.
References sequenceId_.
|
inlinevirtual |
source | A std::string representing the source of the feature. |
Implements bpp::SequenceFeature.
Definition at line 334 of file SequenceFeature.h.
References source_.
|
inlinevirtual |
type | A std::string representing the type of this feature. |
Implements bpp::SequenceFeature.
Definition at line 336 of file SequenceFeature.h.
References type_.
|
inlinevirtualinherited |
Definition at line 195 of file SequenceFeature.h.
References bpp::SequenceFeature::getEnd(), and bpp::SequenceFeature::getStart().
Referenced by bpp::SequenceFeature::isEmpty(), and bpp::SequenceFeature::isPoint().
|
mutableprotected |
Definition at line 305 of file SequenceFeature.h.
Referenced by getAttribute(), getAttributeList(), removeAttribute(), and setAttribute().
|
protected |
Definition at line 299 of file SequenceFeature.h.
|
staticinherited |
Definition at line 140 of file SequenceFeature.h.
Referenced by getAttribute().
|
protected |
Definition at line 303 of file SequenceFeature.h.
Referenced by getEnd(), getRange(), getStart(), includes(), invert(), isIncludedIn(), isNegativeStrand(), isStranded(), and overlap().
|
protected |
Definition at line 304 of file SequenceFeature.h.
Referenced by getScore(), and setScore().
|
protected |
Definition at line 300 of file SequenceFeature.h.
Referenced by getSequenceId(), overlap(), and setSequenceId().
|
protected |
Definition at line 301 of file SequenceFeature.h.
Referenced by getSource(), and setSource().
|
protected |
Definition at line 302 of file SequenceFeature.h.