#include <Overlap_AMOS.hh>
Inheritance diagram for AMOS::Overlap_t:
Public Member Functions | |
Overlap_t () | |
Constructs an empty Overlap_t object. | |
Overlap_t (const Overlap_t &source) | |
Copy constructor. | |
~Overlap_t () | |
Destroys a Overlap_t object. | |
virtual void | clear () |
Clears all object data, reinitializes the object. | |
void | flip () |
Flip the orientation of the overlap. | |
OverlapAdjacency_t | getAdjacency () const |
Get the overlapping ends of the reads. | |
Size_t | getAhang () const |
Get the A-hang overlap value. | |
Size_t | getBhang () const |
Get the B-hang overlap value. | |
virtual NCode_t | getNCode () const |
Get the AMOS NCode type identifier. | |
std::pair< ID_t, ID_t > | getReads () const |
Get the pair of contig IIDs joined by this overlap. | |
uint32_t | getScore () const |
Get the overlap score. | |
bool | isFlagC () const |
Check the value of flag C. | |
virtual void | readMessage (const Message_t &msg) |
Reads in data from a Message object. | |
void | setAdjacency (OverlapAdjacency_t adj) |
Set the overlapping ends of the reads. | |
void | setAhang (Size_t aHang) |
Set the A-hang overlap value. | |
void | setBhang (Size_t bHang) |
Set the B-hang overlap value. | |
void | setFlagC (bool flag) |
Set the value of flag C. | |
void | setReads (std::pair< ID_t, ID_t > reads) |
Set the read IID pair for this overlap. | |
void | setScore (uint32_t score) |
Set the overlap score. | |
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_OVERLAP |
The NCode type identifier for this object. | |
const OverlapAdjacency_t | NULL_ADJACENCY = 0 |
const OverlapAdjacency_t | NORMAL = 'N' |
E,B. | |
const OverlapAdjacency_t | ANTINORMAL = 'A' |
B,E. | |
const OverlapAdjacency_t | INNIE = 'I' |
E,E. | |
const OverlapAdjacency_t | OUTIE = 'O' |
B,B. | |
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" | |
Static Protected Attributes | |
const uint8_t | NORMAL_BITS = 0x1 |
const uint8_t | ANTINORMAL_BITS = 0x2 |
const uint8_t | INNIE_BITS = 0x3 |
const uint8_t | OUTIE_BITS = 0x0 |
const uint8_t | ADJACENCY_BITS = 0x3 |
adjacency info mask | |
const uint8_t | ADJACENCY_BIT = 0x4 |
adjacency exists flag | |
const uint8_t | FLAGC_BIT = 0x8 |
C flag. |
A similarity based overlap between two Read_t that suggests their relative location (to one another) in the original sequence. If storing a large number of overlaps in an AMOS bank, it is wise to omit the IID and EID fields from the objects as these values will only be written to the bank if they are non-NULL. Also, an extra bit flag (FlagC) is provided in addition to FlagA and FlagB which are inherited.
Definition at line 33 of file Overlap_AMOS.hh.
|
Constructs an empty Overlap_t object. Sets all members to 0 Definition at line 80 of file Overlap_AMOS.hh. References AMOS::NULL_ID. |
|
Copy constructor. Definition at line 91 of file Overlap_AMOS.hh. |
|
Destroys a Overlap_t object. Definition at line 100 of file Overlap_AMOS.hh. |
|
Clears all object data, reinitializes the object.
Reimplemented from AMOS::Universal_t. Definition at line 107 of file Overlap_AMOS.hh. References AMOS::Universal_t::clear(), and AMOS::NULL_ID. Referenced by readMessage(), and writeMessage(). |
|
Flip the orientation of the overlap. Reverses the order of the read IIDs and changes the overlap adjacency as altered by the new orientation of the reads. Does not alter adjacency if it is currently a NULL_ADJACENCY. Also, swaps the a/bHang values. After flip, NORMAL becomes ANTINORMAL, ANTINORMAL becomes NORMAL, and INNIE and OUTIE remain the same.
References ANTINORMAL, getAdjacency(), NORMAL, AMOS::OverlapAdjacency_t, setAdjacency(), and AMOS::Size_t. |
|
Get the overlapping ends of the reads. Get the overlap information for the reads, i.e. [N]ORMAL (EB), [A]NTINORMAL (BE), [I]NNIE (EE) or [O]UTIE (BB). Where B is the beginning of the read and E is the end of the read and [N]ORMAL means the end of read1 overlaps the beginning of read2.
References ADJACENCY_BIT, ADJACENCY_BITS, ANTINORMAL, ANTINORMAL_BITS, INNIE, INNIE_BITS, NORMAL, NORMAL_BITS, NULL_ADJACENCY, OUTIE, OUTIE_BITS, and AMOS::OverlapAdjacency_t. Referenced by flip(), and writeMessage(). |
|
Get the A-hang overlap value. Get the length of the non-overlapping portion of the first read.
References AMOS::Size_t. |
|
Get the B-hang overlap value. Get the length of the non-overlapping portion of the second read.
References AMOS::Size_t. |
|
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 170 of file Overlap_AMOS.hh. References AMOS::NCode_t. |
|
Get the pair of contig IIDs joined by this overlap.
|
|
Get the overlap score.
|
|
Get the status value.
References AMOS::Status_t. |
|
Check the value of flag A.
References AMOS::IBankable_t::flags_m. Referenced by AMOS::Universal_t::writeMessage(), and writeMessage(). |
|
Check the value of flag B.
References AMOS::IBankable_t::flags_m. Referenced by AMOS::Universal_t::writeMessage(), and writeMessage(). |
|
Check the value of flag C.
References FLAGC_BIT. Referenced by 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 61 of file Overlap_AMOS.cc. References AMOS_THROW_ARGUMENT, clear(), AMOS::F_ADJACENCY, AMOS::F_AHANG, AMOS::F_BHANG, AMOS::F_FLAG, AMOS::F_READS, AMOS::F_SCORE, AMOS::Universal_t::readMessage(), setAdjacency(), AMOS::IBankable_t::setFlagA(), AMOS::IBankable_t::setFlagB(), and setFlagC(). |
|
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 135 of file Overlap_AMOS.cc. References AMOS::readLE(), and AMOS::Universal_t::readRecord(). |
|
Set the overlapping ends of the reads. Set the overlap information for the reads, i.e. [N]ORMAL (EB), [A]NTINORMAL (BE), [I]NNIE (EE) or [O]UTIE (BB). Where B is the beginning of the read and E is the end of the read and EB would mean the end of read1 overlaps the beginning of read2.
References ADJACENCY_BIT, ADJACENCY_BITS, AMOS_THROW_ARGUMENT, ANTINORMAL, ANTINORMAL_BITS, INNIE, INNIE_BITS, NORMAL, NORMAL_BITS, NULL_ADJACENCY, OUTIE, OUTIE_BITS, and AMOS::OverlapAdjacency_t. Referenced by flip(), and readMessage(). |
|
Set the A-hang overlap value. Set the length of the non-overlapping portion of the first read.
References AMOS::Size_t. |
|
Set the B-hang overlap value. Set the length of the non-overlapping portion of the second read.
References AMOS::Size_t. |
|
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 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 readMessage(). |
|
Set the value of flag C.
References FLAGC_BIT. Referenced by readMessage(). |
|
Set the internal ID.
References AMOS::ID_t, and AMOS::IBankable_t::iid_m. |
|
Set the read IID pair for this overlap.
|
|
Set the overlap score.
|
|
Set the status value.
References AMOS::Status_t. Referenced by AMOS::Universal_t::readMessage(). |
|
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 171 of file Overlap_AMOS.cc. References clear(), AMOS::F_ADJACENCY, AMOS::F_AHANG, AMOS::F_BHANG, AMOS::F_FLAG, AMOS::F_READS, AMOS::F_SCORE, getAdjacency(), AMOS::IBankable_t::isFlagA(), AMOS::IBankable_t::isFlagB(), isFlagC(), NULL_ADJACENCY, AMOS::NULL_ID, 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 222 of file Overlap_AMOS.cc. References AMOS::writeLE(), and AMOS::Universal_t::writeRecord(). |
|
adjacency exists flag Definition at line 51 of file Overlap_AMOS.hh. Referenced by getAdjacency(), and setAdjacency(). |
|
adjacency info mask Definition at line 50 of file Overlap_AMOS.hh. Referenced by getAdjacency(), and setAdjacency(). |
|
B,E. Definition at line 21 of file Overlap_AMOS.cc. Referenced by flip(), getAdjacency(), and setAdjacency(). |
|
Definition at line 47 of file Overlap_AMOS.hh. Referenced by getAdjacency(), and setAdjacency(). |
|
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(). |
|
C flag. Definition at line 52 of file Overlap_AMOS.hh. Referenced by isFlagC(), and setFlagC(). |
|
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(). |
|
E,E. Definition at line 22 of file Overlap_AMOS.cc. Referenced by getAdjacency(), and setAdjacency(). |
|
Definition at line 48 of file Overlap_AMOS.hh. Referenced by getAdjacency(), and setAdjacency(). |
|
The NCode type identifier for this object.
Reimplemented from AMOS::Universal_t. Definition at line 18 of file Overlap_AMOS.cc. |
|
E,B. Definition at line 20 of file Overlap_AMOS.cc. Referenced by flip(), getAdjacency(), and setAdjacency(). |
|
Definition at line 46 of file Overlap_AMOS.hh. Referenced by getAdjacency(), and setAdjacency(). |
|
Definition at line 19 of file Overlap_AMOS.cc. Referenced by getAdjacency(), setAdjacency(), and writeMessage(). |
|
B,B. Definition at line 23 of file Overlap_AMOS.cc. Referenced by getAdjacency(), and setAdjacency(). |
|
Definition at line 49 of file Overlap_AMOS.hh. Referenced by getAdjacency(), and setAdjacency(). |