#include <gnContigSpec.h>
Inheritance diagram for gnContigSpec::
Public Methods | |
gnContigSpec () | |
virtual | ~gnContigSpec () |
Destructor, frees memory. More... | |
virtual gnContigSpec* | Clone () const=0 |
virtual gnContigSpec* | CloneRange (const uint32 startI, const uint32 len) const=0 |
virtual string | GetSourceName () const |
Get the name of the source associated with this spec. More... | |
virtual gnSeqI | GetStart () const |
Get the base pair index where this contig starts inside of the sequence data. More... | |
virtual gnSeqI | GetLength () const |
Get the length of this contig inside of the sequence data. More... | |
virtual gnSeqI | GetSourceLength () const=0 |
Get the length of the source for this spec. More... | |
virtual uint32 | GetSourceContigIndex () const |
Returns this contig's index in its source sequence. More... | |
virtual void | SetSourceName (const string &sourceName) |
Sets the name of the source associated with this contig. More... | |
virtual void | SetStart (const gnSeqI start) |
Sets the starting base pair to read from in the contig's sequence. More... | |
virtual void | SetLength (const gnSeqI len) |
Sets the length of reads into this sequence. More... | |
virtual void | SetSourceContigIndex (const uint32 contigI) |
Sets this contig's index in its source sequence. More... | |
virtual void | SetReverseComplement (const boolean value) |
Sets the reverse complement bit for this contig. More... | |
virtual void | CropStart (gnSeqI cropLen) |
Crop the first cropLen bases from the sequence. More... | |
virtual void | CropEnd (gnSeqI cropLen) |
Crop the last cropLen bases from the sequence. More... | |
virtual boolean | SeqRead (const gnSeqI start, gnSeqC *buf, uint32 &bufLen, const uint32 contigI) const |
Reads sequence data from this spec. More... | |
virtual void | Clear () |
Clears all data from this spec. More... | |
Protected Methods | |
virtual boolean | Read (const gnSeqI start, gnSeqC *buf, uint32 &bufLen) const=0 |
all derived classes must implement this! it simply reads the specified bases into buf, disregarding circularity and reverse complement. More... | |
Protected Attributes | |
gnSeqI | m_start |
gnSeqI | m_length |
uint32 | m_SourceContigIndex |
Definition at line 28 of file gnContigSpec.h.
|
Definition at line 31 of file gnContigSpec.h. |
|
Destructor, frees memory.
Definition at line 35 of file gnContigSpec.h. |
|
Clears all data from this spec.
Reimplemented from gnBaseSpec. Reimplemented in gnSourceSpec, and gnStringSpec. Definition at line 61 of file gnContigSpec.cpp. Referenced by gnStringSpec::Clear(), and gnSourceSpec::Clear().
|
|
Reimplemented from gnBaseSpec. Reimplemented in gnSourceSpec, and gnStringSpec. Referenced by gnFragmentSpec::CloneRange(), and gnSequence::gnSequence().
|
|
Reimplemented from gnBaseSpec. Referenced by gnFragmentSpec::CloneRange().
|
|
Crop the last cropLen bases from the sequence. CropEnd will delete features and headers associated with the cropped bases.
Reimplemented from gnBaseSpec. Definition at line 23 of file gnContigSpec.cpp. |
|
Crop the first cropLen bases from the sequence. CropStart will delete features and headers associated with the cropped bases.
Reimplemented from gnBaseSpec. Definition at line 17 of file gnContigSpec.cpp. |
|
Get the length of this contig inside of the sequence data.
Reimplemented from gnBaseSpec. Definition at line 134 of file gnContigSpec.h. Referenced by gnFragmentSpec::CloneRange(), gnSEQSource::ParseStream(), and gnGBKSource::ParseStream().
|
|
Returns this contig's index in its source sequence.
Definition at line 150 of file gnContigSpec.h. Referenced by gnSequence::globalToSource().
|
|
Get the length of the source for this spec.
Reimplemented in gnSourceSpec, and gnStringSpec. Referenced by CropStart(), SeqRead(), SetReverseComplement(), and gnSequence::globalToSource().
|
|
Get the name of the source associated with this spec.
Definition at line 120 of file gnContigSpec.h. |
|
Get the base pair index where this contig starts inside of the sequence data.
Definition at line 129 of file gnContigSpec.h. Referenced by gnSequence::globalToSource().
|
|
all derived classes must implement this! it simply reads the specified bases into buf, disregarding circularity and reverse complement.
Reimplemented in gnSourceSpec, and gnStringSpec. Referenced by SeqRead().
|
|
Reads sequence data from this spec. SeqRead will attempt to read "bufLen" base pairs starting at "start", an offset into the sequence. Reading inside a specific contig can be accomplished by supplying the "contigI" parameter with a valid contig index. SeqRead stores the sequence data in "buf" and returns the actual number of bases read in "bufLen". SeqRead will return false if a serious error occurs.
Reimplemented from gnBaseSpec. Definition at line 35 of file gnContigSpec.cpp. |
|
Sets the length of reads into this sequence. This does not affect the actual sequence data but only how much of it is used in this contig.
Definition at line 145 of file gnContigSpec.h. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream().
|
|
Sets the reverse complement bit for this contig. This routine will translate the start index to the reverse base pair.
Reimplemented from gnBaseSpec. Definition at line 27 of file gnContigSpec.cpp. Referenced by gnFragmentSpec::SetReverseComplement().
|
|
Sets this contig's index in its source sequence.
Definition at line 154 of file gnContigSpec.h. |
|
Sets the name of the source associated with this contig.
Definition at line 124 of file gnContigSpec.h. Referenced by gnFASSource::GetSpec(), gnSEQSource::ParseStream(), gnRAWSource::ParseStream(), gnGBKSource::ParseStream(), and gnDNXSource::ParseStream().
|
|
Sets the starting base pair to read from in the contig's sequence. This does not affect the actual sequence data but only where to begin using it in this contig.
Definition at line 140 of file gnContigSpec.h. |
|
Definition at line 106 of file gnContigSpec.h. |
|
Definition at line 105 of file gnContigSpec.h. |
|
Definition at line 104 of file gnContigSpec.h. |