NCBI C++ ToolKit
|
Search Toolkit Book for SRepeatRegion
Structure implementing the IRepeatRegion API as a simple store of data memebers. More...
#include <objtools/readers/rm_reader.hpp>
Public Types | |
typedef SRepeatRegion | TThisType |
typedef IRepeatRegion | TParent |
Public Types inherited from IRawRepeatRegion | |
typedef ENa_strand | TStrand |
typedef unsigned int | TRptId |
typedef unsigned long | TScore |
typedef double | TPercent |
Public Types inherited from IRepeat | |
typedef ITaxonomyResolver::TTaxId | TTaxId |
Public Member Functions | |
CConstRef< CSeq_loc > | GetLocation (void) const |
Gets the location of this repeat. More... | |
CConstRef< CFeat_id > | GetId () const |
Gets the more general feature ID for this repeat, which identifies a single repeat, which may be multi-segement, and allows linking the segments together. More... | |
string | GetRptName () const |
Gets repeat name. More... | |
string | GetRptFamily () const |
Gets repeat family, or empty string if not known. More... | |
string | GetRptClass () const |
Gets repeat class, or empty string if not known. More... | |
TSeqPos | GetRptLength () const |
Gets repeat length, or kInvalidSeqPos if not known. More... | |
TTaxId | GetRptSpecificity () const |
Returns 0, not known. More... | |
string | GetRptSpecificityName () const |
Returns an empty string, not known. More... | |
string | GetRptRepbaseId () const |
Returns an empty string, not known. More... | |
TRptId | GetRptId () const |
TScore | GetSwScore () const |
TPercent | GetPercDiv () const |
TPercent | GetPercDel () const |
TPercent | GetPercIns () const |
TSeqPos | GetRptPosBegin () const |
TSeqPos | GetRptPosEnd () const |
TSeqPos | GetRptLeft () const |
TSeqPos | GetSeqLeft () const |
bool | IsOverlapped () const |
Flag that there is a higher-scoring match whose domain partly (<80%) includes the domain of this match. More... | |
string | GetSeqIdString () const |
Overridden version returns the orginal unparsed sequence identifier, if it was set (non-empty). More... | |
Public Member Functions inherited from IRepeatRegion | |
virtual void | GetLocation (CSeq_loc &result) const |
Gets a copy of the location into the Seq-loc instance provided by the caller. More... | |
virtual TSeqPos | GetSeqPosBegin () const |
Convenience function that gets the position start on the sequence, without dealing with a Seq-loc. More... | |
virtual TSeqPos | GetSeqPosEnd () const |
Convenience functions that gets the position end on the sequence, without dealing with a Seq-loc. More... | |
virtual bool | IsReverseStrand () const |
Convenience functions that gets the strand on the sequence, without dealing with a Seq-loc. More... | |
Public Member Functions inherited from IRawRepeatRegion | |
virtual | ~IRawRepeatRegion (void) |
Enforce virtual destructor. More... | |
string | GetRptClassFamily () const |
Covenience function to get the class and family as one value, the way that RepeatMasker emits them. More... | |
Public Member Functions inherited from IRepeat | |
virtual | ~IRepeat (void) |
Enforce virtual destructor. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from IRawRepeatRegion | |
static const unsigned int | kInvalidRptId = kMax_UInt |
Static Public Attributes inherited from IRepeat | |
static const TTaxId | kInvalidTaxId = 0 |
Structure implementing the IRepeatRegion API as a simple store of data memebers.
The requirements for this class include that it be lossless with regard to the content from tabular RepeatMasker output. If this class doesn't represent some attribute, then as far as all consumers of RepeatMasker data are concerned, that attribute doesn't exist. As an example of data loss, even standardization of the sequence identifier, from string name to Seq-id, is potentially lossy. Thus, this class overrides the default implementation of GetSeqIdString().
There are several clients in need of a lightweight and minimalist representation of a repeat match. This structure provides that storage. This representation is very raw, and closely mirrors one line of tabular RepeatMasker output.
By contrast, the NCBI data model provides a Seq-feat representation of repeats, but that representation is burdened with INSDC and NCBI standards.
Definition at line 350 of file rm_reader.hpp.
typedef IRepeatRegion SRepeatRegion::TParent |
Definition at line 354 of file rm_reader.hpp.
Definition at line 353 of file rm_reader.hpp.
Gets the more general feature ID for this repeat, which identifies a single repeat, which may be multi-segement, and allows linking the segments together.
The feature ID can be either a CFeat_id as in ASN.1, or a RepeatMasker feature ID encoded as such a CFeat_id using a local integer ID.
Implements IRepeatRegion.
Definition at line 160 of file rm_reader.cpp.
References GetRptId(), and result.
Gets the location of this repeat.
Implements IRepeatRegion.
Definition at line 155 of file rm_reader.cpp.
References query_location.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Gets repeat class, or empty string if not known.
Implements IRepeat.
Definition at line 189 of file rm_reader.cpp.
References rpt_class.
|
virtual |
Gets repeat family, or empty string if not known.
Implements IRepeat.
Definition at line 184 of file rm_reader.cpp.
References rpt_family.
|
virtual |
Implements IRawRepeatRegion.
Definition at line 212 of file rm_reader.cpp.
References rpt_id.
Referenced by GetId().
|
virtual |
Implements IRawRepeatRegion.
Definition at line 247 of file rm_reader.cpp.
References rpt_left.
Referenced by GetRptLength().
|
virtual |
Gets repeat length, or kInvalidSeqPos if not known.
Implements IRepeat.
Definition at line 198 of file rm_reader.cpp.
References GetRptLeft(), GetRptPosEnd(), and kInvalidSeqPos.
|
virtual |
Gets repeat name.
Implements IRepeat.
Definition at line 179 of file rm_reader.cpp.
References matching_repeat.
|
virtual |
Implements IRawRepeatRegion.
Definition at line 237 of file rm_reader.cpp.
References rpt_pos_begin.
|
virtual |
Implements IRawRepeatRegion.
Definition at line 242 of file rm_reader.cpp.
References rpt_pos_end.
Referenced by GetRptLength().
|
virtual |
Returns an empty string, not known.
The Repbase ID is not present in RepeatMasker output.
Implements IRepeat.
Definition at line 208 of file rm_reader.cpp.
References kEmptyStr.
|
virtual |
Returns 0, not known.
The specificity is not present in RepeatMasker output.
Implements IRepeat.
Definition at line 194 of file rm_reader.cpp.
|
virtual |
Returns an empty string, not known.
The specificity is not present in RepeatMasker output.
Implements IRepeat.
Definition at line 204 of file rm_reader.cpp.
References kEmptyStr.
|
virtual |
Overridden version returns the orginal unparsed sequence identifier, if it was set (non-empty).
Reimplemented from IRepeatRegion.
Definition at line 170 of file rm_reader.cpp.
References IRepeatRegion::GetSeqIdString(), and query_sequence.
|
virtual |
|
virtual |
|
virtual |
Flag that there is a higher-scoring match whose domain partly (<80%) includes the domain of this match.
Implements IRawRepeatRegion.
Definition at line 257 of file rm_reader.cpp.
References overlapped.
string SRepeatRegion::matching_repeat |
Definition at line 407 of file rm_reader.hpp.
Referenced by GetRptName(), and CRepeatMaskerReader::ParseRecord().
bool SRepeatRegion::overlapped |
Definition at line 414 of file rm_reader.hpp.
Referenced by IsOverlapped(), and CRepeatMaskerReader::ParseRecord().
TPercent SRepeatRegion::perc_del |
Definition at line 403 of file rm_reader.hpp.
Referenced by GetPercDel(), and CRepeatMaskerReader::ParseRecord().
TPercent SRepeatRegion::perc_div |
Definition at line 402 of file rm_reader.hpp.
Referenced by GetPercDiv(), and CRepeatMaskerReader::ParseRecord().
TPercent SRepeatRegion::perc_ins |
Definition at line 404 of file rm_reader.hpp.
Referenced by GetPercIns(), and CRepeatMaskerReader::ParseRecord().
TSeqPos SRepeatRegion::query_left |
Definition at line 401 of file rm_reader.hpp.
Referenced by GetSeqLeft(), and CRepeatMaskerReader::ParseRecord().
Definition at line 399 of file rm_reader.hpp.
Referenced by GetLocation(), and CRepeatMaskerReader::ParseRecord().
string SRepeatRegion::query_sequence |
Definition at line 405 of file rm_reader.hpp.
Referenced by GetSeqIdString(), and CRepeatMaskerReader::ParseRecord().
string SRepeatRegion::rpt_class |
Definition at line 408 of file rm_reader.hpp.
Referenced by GetRptClass(), and CRepeatMaskerReader::ParseRecord().
string SRepeatRegion::rpt_family |
Definition at line 409 of file rm_reader.hpp.
Referenced by GetRptFamily(), and CRepeatMaskerReader::ParseRecord().
TRptId SRepeatRegion::rpt_id |
Definition at line 413 of file rm_reader.hpp.
Referenced by GetRptId(), and CRepeatMaskerReader::ParseRecord().
TSeqPos SRepeatRegion::rpt_left |
Definition at line 412 of file rm_reader.hpp.
Referenced by GetRptLeft(), and CRepeatMaskerReader::ParseRecord().
TSeqPos SRepeatRegion::rpt_pos_begin |
Definition at line 410 of file rm_reader.hpp.
Referenced by GetRptPosBegin(), and CRepeatMaskerReader::ParseRecord().
TSeqPos SRepeatRegion::rpt_pos_end |
Definition at line 411 of file rm_reader.hpp.
Referenced by GetRptPosEnd(), and CRepeatMaskerReader::ParseRecord().
string SRepeatRegion::strand |
Definition at line 406 of file rm_reader.hpp.
TScore SRepeatRegion::sw_score |
Definition at line 400 of file rm_reader.hpp.
Referenced by GetSwScore(), and CRepeatMaskerReader::ParseRecord().