#include <gnBaseSpec.h>
Inheritance diagram for gnBaseSpec::
Public Methods | |
gnBaseSpec () | |
virtual | ~gnBaseSpec () |
Destructor, frees memory. More... | |
virtual gnBaseSpec* | Clone () const=0 |
virtual gnBaseSpec* | CloneRange (const uint32 startI, const uint32 len) const=0 |
virtual string | GetName () const |
Get the name of the contig associated with this spec. More... | |
virtual void | SetName (const string &name) |
Sets the name for this contig. More... | |
virtual gnSeqI | GetLength () const=0 |
Get the length of all the sequence data covered by this spec. More... | |
virtual boolean | IsReverseComplement () const |
Returns true if this spec is read reverse complement. More... | |
virtual boolean | IsCircular () const |
Returns true if this spec's sequence is circular. More... | |
virtual void | SetReverseComplement (const boolean value)=0 |
Sets the reverse complement bit for this spec. More... | |
virtual void | SetCircular (const boolean value) |
Sets whether this spec should be read circular. More... | |
virtual void | CropStart (gnSeqI cropLen)=0 |
Crop the first cropLen bases from the sequence. More... | |
virtual void | CropEnd (gnSeqI cropLen)=0 |
Crop the last cropLen bases from the sequence. More... | |
virtual boolean | SeqRead (const gnSeqI start, gnSeqC *buf, uint32 &bufLen, const uint32 contigI) const=0 |
Reads sequence data from this spec. More... | |
virtual void | Clear () |
Clears all data from this spec. More... | |
Protected Attributes | |
boolean | m_reverseComplement |
boolean | m_circular |
string | m_name |
string | m_sourceName |
Definition at line 28 of file gnBaseSpec.h.
|
Definition at line 31 of file gnBaseSpec.h. |
|
Destructor, frees memory.
Definition at line 35 of file gnBaseSpec.h. |
|
Clears all data from this spec.
Reimplemented in gnContigSpec, gnFragmentSpec, gnGenomeSpec, gnMultiSpec, gnSourceSpec, and gnStringSpec. Definition at line 137 of file gnBaseSpec.h. Referenced by gnMultiSpec::Clear(), and gnContigSpec::Clear().
|
|
Reimplemented from gnClone. Reimplemented in gnContigSpec, gnFragmentSpec, gnGenomeSpec, gnMultiSpec, gnSourceSpec, and gnStringSpec. |
|
Reimplemented in gnContigSpec. |
|
Crop the last cropLen bases from the sequence. CropEnd will delete features and headers associated with the cropped bases.
Reimplemented in gnContigSpec, gnFragmentSpec, and gnMultiSpec. Referenced by gnMultiSpec::CropEnd().
|
|
Crop the first cropLen bases from the sequence. CropStart will delete features and headers associated with the cropped bases.
Reimplemented in gnContigSpec, gnFragmentSpec, and gnMultiSpec. Referenced by gnMultiSpec::CropStart().
|
|
Get the length of all the sequence data covered by this spec.
Reimplemented in gnContigSpec, and gnMultiSpec. Referenced by gnMultiSpec::CropEnd(), gnMultiSpec::CropStart(), gnDNXSource::GetContigSeqLength(), gnMultiSpec::GetLength(), gnMultiSpec::GetSpecEndBase(), gnMultiSpec::GetSpecIndexByBase(), gnMultiSpec::GetSpecStartBase(), and gnMultiSpec::SeqRead().
|
|
Get the name of the contig associated with this spec.
Definition at line 117 of file gnBaseSpec.h. Referenced by gnDNXSource::GetContigID(), gnDNXSource::GetContigName(), gnMultiSpec::GetSpecIndexByName(), gnDNXSource::HasContig(), gnGBKSource::Write(), gnDNXSource::Write(), and gnSequence::contigName().
|
|
Returns true if this spec's sequence is circular.
Definition at line 129 of file gnBaseSpec.h. Referenced by gnGBKSource::Write(), and gnSequence::isCircular().
|
|
Returns true if this spec is read reverse complement.
Definition at line 125 of file gnBaseSpec.h. Referenced by gnGenomeSpec::SetReverseComplement(), gnFragmentSpec::SetReverseComplement(), gnSequence::globalToSource(), and gnSequence::isReverseComplement().
|
|
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 in gnContigSpec, and gnMultiSpec. Referenced by gnMultiSpec::SeqRead().
|
|
Sets whether this spec should be read circular. If circular is set, reads beyond the end of this spec will pick up at the beginning and read up to the start index.
Definition at line 133 of file gnBaseSpec.h. Referenced by gnSEQSource::ParseStream(), gnGBKSource::ParseStream(), and gnSequence::setCircular().
|
|
Sets the name for this contig.
Definition at line 121 of file gnBaseSpec.h. Referenced by gnFASSource::GetSpec(), gnSEQSource::ParseStream(), gnGBKSource::ParseStream(), gnDNXSource::ParseStream(), and gnSequence::setContigName().
|
|
Sets the reverse complement bit for this spec.
Reimplemented in gnContigSpec, gnFragmentSpec, and gnGenomeSpec. Referenced by main().
|
|
Definition at line 109 of file gnBaseSpec.h. |
|
Definition at line 111 of file gnBaseSpec.h. |
|
Definition at line 108 of file gnBaseSpec.h. |
|
Reimplemented in gnMultiSpec. Definition at line 112 of file gnBaseSpec.h. |