#include <Feature_AMOS.hh>
Inheritance diagram for AMOS::Feature_t:
Public Member Functions | |
Feature_t () | |
Constructs an empty Feature_t object. | |
Feature_t (const Feature_t &source) | |
Copy constructor. | |
~Feature_t () | |
Destroys a Feature_t object. | |
virtual void | clear () |
Clears all object data, reinitializes the object. | |
virtual NCode_t | getNCode () const |
Get the AMOS NCode type identifier. | |
Range_t | getRange () const |
Get the feature range. | |
std::pair< ID_t, NCode_t > | getSource () const |
Get the feature source IID and type. | |
FeatureType_t | getType () const |
Get the feature type. | |
void | setRange (Range_t range) |
Set the feature range. | |
void | setSource (std::pair< ID_t, NCode_t > source) |
Set the feature source IID and type. | |
void | setType (FeatureType_t type) |
Set the feature type. | |
virtual void | readMessage (const Message_t &msg) |
Reads in data from a Message object. | |
virtual void | writeMessage (Message_t &msg) const |
Writes data to a Message object. | |
const std::string & | getComment () const |
Get the comment string. | |
const Status_t | getStatus () const |
Get the status value. | |
void | setComment (const std::string &comment) |
Set the comment string. | |
void | setStatus (Status_t status) |
Set the status value. | |
const std::string & | getEID () const |
Get the external ID. | |
ID_t | getIID () const |
Get the internal ID. | |
bool | isRemoved () const |
Check if the object is waiting to be removed from the bank. | |
bool | isModified () const |
Check if the object has been modified. | |
bool | isFlagA () const |
Check the value of flag A. | |
bool | isFlagB () const |
Check the value of flag B. | |
void | setEID (const std::string &eid) |
Set the external ID. | |
void | setFlagA (bool flag) |
Set flag A. | |
void | setFlagB (bool flag) |
Set flag B. | |
void | setIID (ID_t iid) |
Set the internal ID. | |
Static Public Attributes | |
const NCode_t | NCODE = M_FEATURE |
The NCode type identifier for this object. | |
const FeatureType_t | NULL_FEATURE = 0 |
const FeatureType_t | REPEAT = 'R' |
const FeatureType_t | UNITIG = 'U' |
const FeatureType_t | JOIN = 'J' |
const FeatureType_t | COVERAGE = 'C' |
const FeatureType_t | ORF = 'O' |
const FeatureType_t | POLYMORPHISM = 'P' |
Protected Member Functions | |
virtual void | readRecord (std::istream &fix, std::istream &var) |
Read selected class members from a biserial record. | |
virtual void | writeRecord (std::ostream &fix, std::ostream &var) const |
Write selected class members to a biserial record. | |
Protected Attributes | |
ID_t | iid_m |
internal ID (integer AMOS identifier) | |
std::string | eid_m |
external ID (anything you want sans newlines) | |
BankFlags_t | flags_m |
bank flags, derived classes may use "nibble" |
Allows a range from some other Universal object to be flagged as a feature. One example would be a location on a contig where a repeat is known to exist. Multiple repeat features with the same consensus could then be grouped together with the Group object to represent a repeat class,
Definition at line 31 of file Feature_AMOS.hh.
|
Constructs an empty Feature_t object. Sets all members to zero or NULL Definition at line 70 of file Feature_AMOS.hh. References NULL_FEATURE, AMOS::NULL_ID, and AMOS::NULL_NCODE. |
|
Copy constructor. Definition at line 81 of file Feature_AMOS.hh. |
|
Destroys a Feature_t object. Definition at line 90 of file Feature_AMOS.hh. |
|
Clears all object data, reinitializes the object.
Reimplemented from AMOS::Universal_t. Definition at line 97 of file Feature_AMOS.hh. References NULL_FEATURE, AMOS::NULL_ID, and AMOS::NULL_NCODE. Referenced by readMessage(), and writeMessage(). |
|
Get the comment string.
Referenced by AMOS::operator<<(). |
|
Get the external ID.
References AMOS::IBankable_t::eid_m. Referenced by AMOS::Contig_t::writeUMD(). |
|
Get the internal ID.
References AMOS::ID_t, and AMOS::IBankable_t::iid_m. Referenced by AMOS::Index_t::buildContigFeature(), AMOS::Index_t::buildContigScaffold(), AMOS::Index_t::buildReadContig(), AMOS::Index_t::buildReadLibrary(), AMOS::Index_t::buildScaffoldFeature(), and AMOS::operator<<(). |
|
Get the AMOS NCode type identifier.
Reimplemented from AMOS::Universal_t. Definition at line 107 of file Feature_AMOS.hh. References AMOS::NCode_t. |
|
Get the feature range.
|
|
Get the feature source IID and type. This method only returns the IID of the object which this feature refers to. The entire source object can be obtained by fetching the returned IID from the specified bank type.
|
|
Get the status value.
References AMOS::Status_t. |
|
Get the feature type.
References AMOS::FeatureType_t. |
|
Check the value of flag A.
References AMOS::IBankable_t::flags_m. Referenced by AMOS::Universal_t::writeMessage(), and AMOS::Overlap_t::writeMessage(). |
|
Check the value of flag B.
References AMOS::IBankable_t::flags_m. Referenced by AMOS::Universal_t::writeMessage(), and AMOS::Overlap_t::writeMessage(). |
|
Check if the object has been modified.
References AMOS::IBankable_t::flags_m. |
|
Check if the object is waiting to be removed from the bank.
References AMOS::IBankable_t::flags_m. |
|
Reads in data from a Message object. Reads the data contained in a Message object and stores it in the Messagable object. Will not complain if incoming message is of the wrong type, will only try and suck out the fields it recognizes. All previous data in the Messagable object will be cleared or overwritten.
Reimplemented from AMOS::Universal_t. Definition at line 29 of file Feature_AMOS.cc. References AMOS_THROW_ARGUMENT, clear(), AMOS::Encode(), AMOS::F_CLEAR, AMOS::F_SOURCE, AMOS::F_TYPE, AMOS::NCODE_SIZE, and AMOS::Universal_t::readMessage(). |
|
Read selected class members from a biserial record. Reads the fixed and variable length streams from a biserial record and initializes the class members to the values stored within. Used in translating a biserial IBankable object, and needed to retrieve objects from a bank.
Reimplemented from AMOS::Universal_t. Definition at line 77 of file Feature_AMOS.cc. References AMOS::readLE(), and AMOS::Universal_t::readRecord(). |
|
Set the comment string.
|
|
Set the external ID. Will only use the characters up to but not including the first newline.
References AMOS::IBankable_t::eid_m, and AMOS::NL_CHAR. Referenced by AMOS::Contig_t::readUMD(). |
|
Set flag A. Has no effect on the actual object in memory other than setting a flag. This is one of two user accessible flags to be used as needed, the other is flag B.
References AMOS::IBankable_t::flags_m. Referenced by AMOS::Universal_t::readMessage(), and AMOS::Overlap_t::readMessage(). |
|
Set flag B. Has no effect on the actual object in memory other than setting a flag. This is one of two user accessible flags to be used as needed, the other is flag A.
References AMOS::IBankable_t::flags_m. Referenced by AMOS::Universal_t::readMessage(), and AMOS::Overlap_t::readMessage(). |
|
Set the internal ID.
References AMOS::ID_t, and AMOS::IBankable_t::iid_m. |
|
Set the feature range.
|
|
Set the feature source IID and type.
|
|
Set the status value.
References AMOS::Status_t. Referenced by AMOS::Universal_t::readMessage(). |
|
Set the feature type.
References AMOS::FeatureType_t. |
|
Writes data to a Message object. Writes the data contained in a Messagable object to a Message object. All previous data in the Message will be cleared or overwritten.
Reimplemented from AMOS::Universal_t. Definition at line 90 of file Feature_AMOS.cc. References clear(), AMOS::Decode(), AMOS::F_CLEAR, AMOS::F_SOURCE, AMOS::F_TYPE, NULL_FEATURE, AMOS::NULL_ID, AMOS::NULL_NCODE, AMOS::NULL_STRING, and AMOS::Universal_t::writeMessage(). |
|
Write selected class members to a biserial record. Writes the fixed and variable length streams to a biserial record. Used in generating a biserial IBankable object, and needed to commit objects to a bank. Should not write the flags, EID, or IID of the object because the bank will handle the storage of these fields on its own.
Reimplemented from AMOS::Universal_t. Definition at line 129 of file Feature_AMOS.cc. References AMOS::writeLE(), and AMOS::Universal_t::writeRecord(). |
|
Definition at line 23 of file Feature_AMOS.cc. |
|
external ID (anything you want sans newlines) Definition at line 66 of file Bank_AMOS.hh. Referenced by AMOS::IBankable_t::clear(), AMOS::IBankable_t::getEID(), and AMOS::IBankable_t::setEID(). |
|
bank flags, derived classes may use "nibble" Definition at line 68 of file Bank_AMOS.hh. Referenced by AMOS::IBankable_t::clear(), AMOS::IBankable_t::isFlagA(), AMOS::IBankable_t::isFlagB(), AMOS::IBankable_t::isModified(), AMOS::IBankable_t::isRemoved(), AMOS::IBankable_t::setFlagA(), and AMOS::IBankable_t::setFlagB(). |
|
internal ID (integer AMOS identifier) Definition at line 64 of file Bank_AMOS.hh. Referenced by AMOS::IBankable_t::clear(), AMOS::IBankable_t::getIID(), AMOS::IBankable_t::IBankable_t(), and AMOS::IBankable_t::setIID(). |
|
Definition at line 22 of file Feature_AMOS.cc. |
|
The NCode type identifier for this object.
Reimplemented from AMOS::Universal_t. Definition at line 18 of file Feature_AMOS.cc. |
|
Definition at line 19 of file Feature_AMOS.cc. Referenced by clear(), Feature_t(), and writeMessage(). |
|
Definition at line 24 of file Feature_AMOS.cc. |
|
Definition at line 25 of file Feature_AMOS.cc. |
|
Definition at line 20 of file Feature_AMOS.cc. |
|
Definition at line 21 of file Feature_AMOS.cc. |