#include <gnGenomeSpec.h>
Inheritance diagram for gnGenomeSpec::
Public Methods | |
gnGenomeSpec () | |
gnGenomeSpec (const gnGenomeSpec &s) | |
Copy constructor. More... | |
virtual | ~gnGenomeSpec () |
Destructor, frees memory. More... | |
virtual gnGenomeSpec* | Clone () const |
virtual void | Clear () |
Clears all data from this spec. More... | |
virtual void | SetReverseComplement (const boolean value) |
Sets the reverse complement bit for this spec. More... | |
virtual uint32 | GetSpecListLength () const |
Returns the number of subspecs this spec contains. More... | |
virtual gnFragmentSpec* | GetSpec (const uint32 i) const |
Get the spec at index i in the list of subspecs. More... | |
virtual gnFragmentSpec* | GetSpecByBase (const gnSeqI baseI) const |
Get the spec from the list of subspecs which contains the specified base pair. More... | |
virtual void | AddSpec (gnBaseSpec *spec, const uint32 i=UINT32_MAX) |
Add a subspec to this spec. More... | |
virtual void | RemoveSpec (uint32 i) |
Remove a subspec from this spec. More... | |
virtual void | MergeFragments (const uint32 startC, const uint32 endC) |
virtual uint32 | AddFeature (gnBaseFeature *feat) |
Add a feature to this spec. More... | |
virtual uint32 | GetFeatureListLength () const |
Returns the number of features this spec contains. More... | |
virtual gnBaseFeature* | GetFeature (const uint32 i) const |
Get the feature at index i in the list of features. More... | |
virtual void | GetContainedFeatures (const gnLocation <, vector< gnBaseFeature *> &feature_vector, vector< uint32 > &index_vector) const |
Creates a list of all features which are contained by coordinates specified. More... | |
virtual void | GetIntersectingFeatures (const gnLocation <, vector< gnBaseFeature *> &feature_vector, vector< uint32 > &index_vector) const |
Creates a list of all features which intersect the coordinates specified. More... | |
virtual void | GetBrokenFeatures (const gnLocation <, vector< gnBaseFeature *> &feature_vector) const |
Creates a list of features which may have been broken by an edit. More... | |
virtual void | RemoveFeature (const uint32 i) |
Remove a feature from this spec. More... | |
virtual gnGenomeSpec* | CloneRange (const gnSeqI startI, const gnSeqI len) const |
Copies a specified range of bases and returns a pointer to the resulting gnGenomeSpec. More... | |
Protected Attributes | |
vector<gnFragmentSpec*> | m_SpecList |
The genome is organized into a list of sequence fragments (specs), a list of features, and a list of headers.
Definition at line 34 of file gnGenomeSpec.h.
|
Definition at line 17 of file gnGenomeSpec.cpp. Referenced by Clone(), and CloneRange().
|
|
Copy constructor.
Definition at line 22 of file gnGenomeSpec.cpp. |
|
Destructor, frees memory.
Definition at line 39 of file gnGenomeSpec.cpp. |
|
Add a feature to this spec.
Reimplemented from gnMultiSpec. Definition at line 129 of file gnGenomeSpec.cpp. Referenced by gnSequence::addFeature().
|
|
Add a subspec to this spec. Throws an exception if the insertion index i is out of range
Reimplemented from gnMultiSpec. Definition at line 106 of file gnGenomeSpec.h. Referenced by CloneRange(), gnFASSource::GetSpec(), gnSEQSource::ParseStream(), gnRAWSource::ParseStream(), gnGBKSource::ParseStream(), gnDNXSource::ParseStream(), gnSequence::gnSequence(), and gnSequence::insert().
|
|
Clears all data from this spec.
Reimplemented from gnMultiSpec. Definition at line 44 of file gnGenomeSpec.cpp. Referenced by gnGenomeSpec(), and ~gnGenomeSpec().
|
|
Reimplemented from gnMultiSpec. Definition at line 84 of file gnGenomeSpec.h. Referenced by gnSEQSource::GetSpec(), gnRAWSource::GetSpec(), gnGBKSource::GetSpec(), gnDNXSource::GetSpec(), gnABISource::GetSpec(), gnGenomeSpec(), gnSequence::gnSequence(), gnSequence::insert(), and gnSequence::splitContig().
|
|
Copies a specified range of bases and returns a pointer to the resulting gnGenomeSpec. You must delete the copy when you are finished with it.
Definition at line 68 of file gnGenomeSpec.cpp. Referenced by gnSequence::erase(), and gnSequence::subseq().
|
|
Creates a list of features which may have been broken by an edit.
Reimplemented from gnMultiSpec. Definition at line 215 of file gnGenomeSpec.cpp. Referenced by gnSequence::getBrokenFeatures().
|
|
Creates a list of all features which are contained by coordinates specified.
Reimplemented from gnMultiSpec. Definition at line 172 of file gnGenomeSpec.cpp. Referenced by gnSequence::getContainedFeatures().
|
|
Get the feature at index i in the list of features.
Reimplemented from gnMultiSpec. Definition at line 156 of file gnGenomeSpec.cpp. Referenced by gnSequence::getFeature().
|
|
Returns the number of features this spec contains.
Reimplemented from gnMultiSpec. Definition at line 148 of file gnGenomeSpec.cpp. Referenced by gnSequence::getFeatureListLength().
|
|
Creates a list of all features which intersect the coordinates specified.
Reimplemented from gnMultiSpec. Definition at line 194 of file gnGenomeSpec.cpp. Referenced by gnSequence::getIntersectingFeatures().
|
|
Get the spec at index i in the list of subspecs.
Reimplemented from gnMultiSpec. Definition at line 94 of file gnGenomeSpec.h. Referenced by AddFeature(), CloneRange(), GetBrokenFeatures(), GetContainedFeatures(), gnDNXSource::GetContigID(), gnDNXSource::GetContigName(), gnDNXSource::GetContigSeqLength(), GetFeature(), GetFeatureListLength(), GetIntersectingFeatures(), gnDNXSource::HasContig(), RemoveFeature(), SetReverseComplement(), gnGBKSource::Write(), gnFASSource::Write(), gnDNXSource::Write(), gnSequence::addHeader(), gnSequence::contig(), gnSequence::contigByName(), gnSequence::contigLength(), gnSequence::contigName(), gnSequence::getHeader(), gnSequence::getHeaderListLength(), gnSequence::globalToSource(), gnSequence::insert(), gnSequence::isReverseComplement(), gnSequence::removeHeader(), gnSequence::setContigName(), and gnSequence::setReverseComplement().
|
|
Get the spec from the list of subspecs which contains the specified base pair.
Reimplemented from gnMultiSpec. Definition at line 101 of file gnGenomeSpec.h. Referenced by gnSequence::contigByBase().
|
|
Returns the number of subspecs this spec contains.
Reimplemented from gnMultiSpec. Definition at line 89 of file gnGenomeSpec.h. Referenced by AddFeature(), CloneRange(), GetBrokenFeatures(), GetContainedFeatures(), gnDNXSource::GetContigListLength(), GetFeature(), GetFeatureListLength(), GetIntersectingFeatures(), MergeFragments(), gnSEQSource::ParseStream(), gnGBKSource::ParseStream(), RemoveFeature(), SetReverseComplement(), gnSequence::contigListLength(), gnSequence::contigListSize(), and gnSequence::insert().
|
|
Definition at line 113 of file gnGenomeSpec.cpp. Referenced by gnSequence::mergeContigs().
|
|
Remove a feature from this spec.
Reimplemented from gnMultiSpec. Definition at line 235 of file gnGenomeSpec.cpp. Referenced by gnSequence::removeFeature().
|
|
Remove a subspec from this spec.
Reimplemented from gnMultiSpec. Definition at line 114 of file gnGenomeSpec.h. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream().
|
|
Sets the reverse complement bit for this spec.
Reimplemented from gnBaseSpec. Definition at line 53 of file gnGenomeSpec.cpp. Referenced by gnSequence::setReverseComplement().
|
|
Definition at line 79 of file gnGenomeSpec.h. |