bpp-seq-omics
2.4.1
|
a coordinate range on a sequence. Stores coordinates as a Range<size_t> object, but also keep the strand information. More...
#include <Bpp/Seq/Feature/SequenceFeature.h>
Public Member Functions | |
SeqRange (size_t a, size_t b, char strand='.') | |
SeqRange (const Range< size_t > range, char strand='.') | |
SeqRange * | clone () const |
virtual char | getStrand () const |
virtual bool | isNegativeStrand () const |
virtual bool | isStranded () const |
virtual void | invert () |
bool | operator== (const Range< T > &r) const |
bool | operator!= (const Range< T > &r) const |
bool | operator< (const Range< T > &r) const |
virtual Range & | operator+= (const T &val) |
virtual Range | operator+ (const T &val) |
virtual Range & | operator-= (const T &val) |
virtual Range | operator- (const T &val) |
T | begin () const |
T | end () const |
T | length () const |
bool | overlap (const Range &r) const |
bool | isContiguous (const Range &r) const |
bool | contains (const Range &r) const |
void | expandWith (const Range &r) |
void | sliceWith (const Range &r) |
bool | isEmpty () const |
std::string | toString () const |
Private Attributes | |
char | strand_ |
T | begin_ |
T | end_ |
a coordinate range on a sequence. Stores coordinates as a Range<size_t> object, but also keep the strand information.
Definition at line 75 of file SequenceFeature.h.
|
inline |
a | First position |
b | Second position |
strand | The strand information. Can take one of the four values: '+' for positive strand, '-' for negative, '.' if not stranded or '?' if strandedness is relevant but unknown. |
Definition at line 87 of file SequenceFeature.h.
References strand_.
Referenced by clone().
|
inline |
range | A range object |
strand | The strand information. Can take one of the four values: '+' for positive strand, '-' for negative, '.' if not stranded or '?' if strandedness is relevant but unknown. |
Definition at line 97 of file SequenceFeature.h.
References strand_.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 106 of file SequenceFeature.h.
References strand_.
Referenced by bpp::CoordinateTranslatorMafIterator::analyseCurrentBlock_(), and bpp::FeatureExtractorMafIterator::analyseCurrentBlock_().
|
inlinevirtual |
Definition at line 110 of file SequenceFeature.h.
References isNegativeStrand(), isStranded(), and strand_.
Referenced by bpp::BasicSequenceFeature::invert().
|
inlinevirtual |
Definition at line 108 of file SequenceFeature.h.
References strand_.
Referenced by bpp::FeatureExtractorMafIterator::analyseCurrentBlock_(), bpp::SequenceFeatureTools::extract(), invert(), and bpp::BasicSequenceFeature::isNegativeStrand().
|
inlinevirtual |
Definition at line 109 of file SequenceFeature.h.
References strand_.
Referenced by invert(), and bpp::BasicSequenceFeature::isStranded().
|
private |
Definition at line 79 of file SequenceFeature.h.
Referenced by getStrand(), invert(), isNegativeStrand(), isStranded(), and SeqRange().