Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
gnContigSpec Class Reference gnContigSpec is an interface for classes which store contigs, or reads, of DNA or protein sequence.
More...
#include <gnContigSpec.h >
Inheritance diagram for gnContigSpec::
List of all members.
Detailed Description
gnContigSpec is an interface for classes which store contigs, or reads, of DNA or protein sequence.
Definition at line 28 of file gnContigSpec.h .
Constructor & Destructor Documentation
gnContigSpec::gnContigSpec (
) [inline]
gnContigSpec::~gnContigSpec (
) [inline, virtual]
Member Function Documentation
void gnContigSpec::Clear (
) [virtual]
gnContigSpec * gnContigSpec::Clone (
) const [pure virtual]
gnContigSpec * gnContigSpec::CloneRange (
const uint32 startI ,
const uint32 len ) const [pure virtual]
void gnContigSpec::CropEnd (
gnSeqI cropLen ) [virtual]
Crop the last cropLen bases from the sequence.
CropEnd will delete features and headers associated with the cropped bases.
Parameters:
cropLen
The number of base pairs to delete from the end.
Reimplemented from gnBaseSpec .
Definition at line 23 of file gnContigSpec.cpp .
void gnContigSpec::CropStart (
gnSeqI cropLen ) [virtual]
Crop the first cropLen bases from the sequence.
CropStart will delete features and headers associated with the cropped bases.
Parameters:
cropLen
The number of base pairs to delete from the beginning.
Reimplemented from gnBaseSpec .
Definition at line 17 of file gnContigSpec.cpp .
gnSeqI gnContigSpec::GetLength (
) const [inline, virtual]
uint32 gnContigSpec::GetSourceContigIndex (
) const [inline, virtual]
gnSeqI gnContigSpec::GetSourceLength (
) const [pure virtual]
string gnContigSpec::GetSourceName (
) const [inline, virtual]
Get the name of the source associated with this spec.
Returns:
The source name or an empty string if none exists.
Definition at line 120 of file gnContigSpec.h .
gnSeqI gnContigSpec::GetStart (
) const [inline, virtual]
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.
Parameters:
start
The base pair to start reading at.
buf
The character array to store base pairs into.
bufLen
The number of base pairs to read. This will be modified to reflect the actual number of bases read.
contigI
The index of the subspec to read or ALL_CONTIGS by default.
Returns:
True if the operation was successful.
Reimplemented from gnBaseSpec .
Definition at line 35 of file gnContigSpec.cpp .
void gnContigSpec::SetLength (
const gnSeqI len ) [inline, virtual]
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.
Parameters:
len
The new sequence length.
Returns:
True if successful.
Definition at line 145 of file gnContigSpec.h .
Referenced by gnSEQSource::ParseStream (), and gnGBKSource::ParseStream ().
void gnContigSpec::SetReverseComplement (
const boolean value ) [virtual]
Sets the reverse complement bit for this contig.
This routine will translate the start index to the reverse base pair.
Parameters:
value
True for reverse complement, false otherwise.
Returns:
True if successful.
Reimplemented from gnBaseSpec .
Definition at line 27 of file gnContigSpec.cpp .
Referenced by gnFragmentSpec::SetReverseComplement ().
void gnContigSpec::SetSourceContigIndex (
const uint32 contigI ) [inline, virtual]
Sets this contig's index in its source sequence.
Parameters:
This
contig's index in the source sequence.
Definition at line 154 of file gnContigSpec.h .
void gnContigSpec::SetSourceName (
const string & sourceName ) [inline, virtual]
void gnContigSpec::SetStart (
const gnSeqI start ) [inline, virtual]
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.
Parameters:
start
The new starting base pair.
Returns:
True if successful.
Definition at line 140 of file gnContigSpec.h .
Member Data Documentation
uint32 gnContigSpec::m_SourceContigIndex [protected]
gnSeqI gnContigSpec::m_length [protected]
gnSeqI gnContigSpec::m_start [protected]
The documentation for this class was generated from the following files:
Generated at Fri Nov 30 15:36:54 2001 for libGenome by
1.2.8.1 written by Dimitri van Heesch ,
© 1997-2001