#include <gnFragmentSpec.h>
Inheritance diagram for gnFragmentSpec::
Public Methods | |
gnFragmentSpec () | |
virtual | ~gnFragmentSpec () |
Destructor, frees memory. More... | |
gnFragmentSpec (const gnFragmentSpec &s) | |
Copy constructor. More... | |
virtual gnFragmentSpec* | 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 gnContigSpec* | GetSpec (const uint32 i) const |
Get the spec at index i in the list of subspecs. More... | |
virtual gnContigSpec* | 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 | 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 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 gnFragmentSpec* | CloneRange (const gnSeqI startI, const gnSeqI len) const |
Copies a specified range of bases and returns a pointer to the resulting gnFragmentSpec. More... | |
Protected Attributes | |
vector<gnContigSpec*> | m_SpecList |
vector<gnBaseFeature*> | m_featureList |
It also contains a list of features which relate to the sequence fragment. Finally it contains a list of sequence related header data. This class is usually created and filled by a file reader class like gnGBKSource.
Definition at line 35 of file gnFragmentSpec.h.
|
Definition at line 17 of file gnFragmentSpec.cpp. Referenced by Clone(), and CloneRange().
|
|
Destructor, frees memory.
Definition at line 45 of file gnFragmentSpec.cpp. |
|
Copy constructor.
Definition at line 22 of file gnFragmentSpec.cpp. |
|
Add a feature to this spec.
Reimplemented from gnMultiSpec. Definition at line 126 of file gnFragmentSpec.h. Referenced by gnGenomeSpec::AddFeature(), gnSEQSource::ParseStream(), and gnGBKSource::ParseStream().
|
|
Add a subspec to this spec. Throws an exception if the insertion index i is out of range
Reimplemented from gnMultiSpec. Definition at line 110 of file gnFragmentSpec.h. Referenced by CloneRange(), gnFASSource::GetSpec(), gnGenomeSpec::MergeFragments(), gnSEQSource::ParseStream(), gnRAWSource::ParseStream(), gnGBKSource::ParseStream(), gnDNXSource::ParseStream(), and gnSequence::gnSequence().
|
|
Clears all data from this spec.
Reimplemented from gnMultiSpec. Definition at line 50 of file gnFragmentSpec.cpp. Referenced by gnFragmentSpec(), and ~gnFragmentSpec().
|
|
Reimplemented from gnMultiSpec. Definition at line 88 of file gnFragmentSpec.h. Referenced by gnGenomeSpec::CloneRange(), GetBrokenFeatures(), GetContainedFeatures(), GetIntersectingFeatures(), gnFragmentSpec(), gnSequence::gnSequence(), and gnSequence::insert().
|
|
Copies a specified range of bases and returns a pointer to the resulting gnFragmentSpec. You must delete the copy when you are finished with it.
Definition at line 100 of file gnFragmentSpec.cpp. Referenced by gnGenomeSpec::CloneRange().
|
|
Crop the last cropLen bases from the sequence. CropEnd will delete features and headers associated with the cropped bases.
Reimplemented from gnMultiSpec. Definition at line 92 of file gnFragmentSpec.cpp. |
|
Crop the first cropLen bases from the sequence. CropStart will delete features and headers associated with the cropped bases.
Reimplemented from gnMultiSpec. Definition at line 84 of file gnFragmentSpec.cpp. |
|
Creates a list of features which may have been broken by an edit.
Reimplemented from gnMultiSpec. Definition at line 77 of file gnFragmentSpec.cpp. Referenced by gnGenomeSpec::GetBrokenFeatures().
|
|
Creates a list of all features which are contained by coordinates specified.
Reimplemented from gnMultiSpec. Definition at line 63 of file gnFragmentSpec.cpp. Referenced by gnGenomeSpec::GetContainedFeatures().
|
|
Get the feature at index i in the list of features.
Reimplemented from gnMultiSpec. Definition at line 138 of file gnFragmentSpec.h. Referenced by gnGenomeSpec::GetFeature(), and gnGBKSource::Write().
|
|
Returns the number of features this spec contains.
Reimplemented from gnMultiSpec. Definition at line 133 of file gnFragmentSpec.h. Referenced by gnGenomeSpec::AddFeature(), gnGenomeSpec::GetBrokenFeatures(), gnGenomeSpec::GetContainedFeatures(), gnGenomeSpec::GetFeature(), gnGenomeSpec::GetFeatureListLength(), gnGenomeSpec::GetIntersectingFeatures(), gnSEQSource::ParseStream(), gnGBKSource::ParseStream(), and gnGenomeSpec::RemoveFeature().
|
|
Creates a list of all features which intersect the coordinates specified.
Reimplemented from gnMultiSpec. Definition at line 70 of file gnFragmentSpec.cpp. Referenced by CloneRange(), and gnGenomeSpec::GetIntersectingFeatures().
|
|
Get the spec at index i in the list of subspecs.
Reimplemented from gnMultiSpec. Definition at line 98 of file gnFragmentSpec.h. Referenced by CloneRange(), gnGenomeSpec::MergeFragments(), SetReverseComplement(), gnDNXSource::Write(), and gnSequence::globalToSource().
|
|
Get the spec from the list of subspecs which contains the specified base pair.
Reimplemented from gnMultiSpec. Definition at line 105 of file gnFragmentSpec.h. |
|
Returns the number of subspecs this spec contains.
Reimplemented from gnMultiSpec. Definition at line 93 of file gnFragmentSpec.h. Referenced by CloneRange(), gnDNXSource::ParseStream(), SetReverseComplement(), and gnDNXSource::Write().
|
|
Remove a feature from this spec.
Reimplemented from gnMultiSpec. Definition at line 143 of file gnFragmentSpec.h. Referenced by gnGenomeSpec::RemoveFeature().
|
|
Remove a subspec from this spec.
Reimplemented from gnMultiSpec. Definition at line 118 of file gnFragmentSpec.h. |
|
Sets the reverse complement bit for this spec.
Reimplemented from gnBaseSpec. Definition at line 152 of file gnFragmentSpec.cpp. Referenced by gnGenomeSpec::SetReverseComplement(), and gnSequence::setReverseComplement().
|
|
Definition at line 81 of file gnFragmentSpec.h. |
|
Definition at line 83 of file gnFragmentSpec.h. |