#include <gnFeature.h>
Inheritance diagram for gnFeature:
Public Member Functions | |
gnFeature () | |
Empty constructor. | |
gnFeature (string &name, uint32 id=0, gnLocation::gnLocationType lt=gnLocation::LT_Nothing, boolean broken=false) | |
Creates a memory feature with the specified name. | |
gnFeature (const gnFeature &s) | |
Copy constructor. | |
~gnFeature () | |
Destructor, frees memory. | |
gnFeature * | Clone () const |
virtual string | GetName () const |
Gets the feature name (e.g. | |
virtual void | SetName (const string &name) |
Sets the feature name. | |
virtual uint32 | GetID () const |
Gets this feature's ID. | |
virtual void | SetID (uint32 id) |
Sets this feature's ID. | |
virtual gnFragmentSpec * | GetSpec () const |
Gets the gnFragmentSpec to which this feature refers. | |
virtual void | SetSpec (gnFragmentSpec *spec) |
Sets the gnFragmentSpec to which this feature refers. | |
virtual gnLocation::gnLocationType | GetLocationType () const |
Gets this feature's location type. | |
virtual void | SetLocationType (gnLocation::gnLocationType lType) |
Sets this feature's location type. | |
virtual uint32 | GetLocationListLength () const |
Returns the number of locations this feature describes. | |
virtual boolean | AddLocation (const gnLocation &l, uint32 listI=0) |
Adds a new location before the location at listI. | |
virtual gnLocation | GetLocation (uint32 listI) const |
Gets the location at listI. | |
virtual boolean | RemoveLocation (uint32 listI) |
Deletes the location at listI. | |
virtual boolean | SetLocation (const gnLocation &l, uint32 listI) |
Sets the location at listI to a new location. | |
virtual boolean | MovePositive (const gnSeqI i) |
Increases this feature's coordinates by a specific number of bases. | |
virtual boolean | MoveNegative (const gnSeqI i) |
Decreases this feature's coordinates by a specific number of bases. | |
virtual boolean | CropStart (const gnSeqI i) |
Crops the start locations of this feature by the specified amount. | |
virtual boolean | CropEnd (const gnSeqI i) |
Crops the end locations of this feature by the specified amount. | |
virtual boolean | Crop (const gnLocation &l) |
Crops the locations of this feature to fit within the given location. | |
virtual boolean | IsBroken () const |
Returns true if the feature is broken. | |
virtual void | SetBroken (boolean broke) |
Sets whether the feature is broken or not. | |
virtual boolean | Contains (gnSeqI i) const |
Checks if the given coordinate is contained by this feature. | |
virtual boolean | Contains (const gnLocation &l) const |
Checks if the given location is contained by this feature. | |
virtual boolean | Contains (gnBaseFeature *feature) const |
Checks if the given feature is entirely contained by this feature. | |
virtual boolean | IsContainedBy (const gnLocation &l) const |
Checks if this feature is entirely contained by the given location. | |
virtual boolean | Intersects (const gnLocation &l) const |
Checks if the given location intersects this feature. | |
virtual boolean | Intersects (gnBaseFeature *feature) const |
Checks if the given feature intersects this feature. | |
virtual uint32 | GetQualifierListLength () const |
Returns the number of qualifiers in this feature. | |
virtual boolean | AddQualifier (gnBaseQualifier *qualifier) |
Adds a new qualifier. | |
virtual boolean | HasQualifier (const string &name) const |
Looks for a qualifier by name. | |
virtual uint32 | FirstIndexOfQualifier (const string &name, uint32 listI) const |
Searches for a qualifier by name, starting at the index listI. | |
virtual uint32 | LastIndexOfQualifier (const string &name, uint32 listI) const |
Searches for a qualifier by name, ending at the index listI. | |
virtual string | GetQualifierName (uint32 listI) const |
Gets the name of the qualifier at the list index listI. | |
virtual string | GetQualifierValue (uint32 listI) const |
Gets the value of the qualifier at the list index listI. | |
virtual gnBaseQualifier * | GetQualifier (uint32 listI) |
Gets the qualifier at the list index listI. | |
virtual boolean | RemoveQualifier (uint32 listI) |
Deletes the qualifier at the list index listI. | |
virtual boolean | SetQualifier (string &name, string &value, uint32 listI) |
Set the name and value of the qualifier at the list index listI. | |
virtual boolean | SetQualifierName (string &name, uint32 listI) |
Set the name of the qualifier at the list index listI. | |
virtual boolean | SetQualifierValue (string &value, uint32 listI) |
Set the value of the qualifier at the list index listI. | |
Protected Attributes | |
uint32 | m_id |
string | m_name |
boolean | m_broken |
gnLocation::gnLocationType | m_locationType |
vector< gnLocation > | m_locationList |
vector< gnBaseQualifier * > | m_qualifierList |
gnFragmentSpec * | m_spec |
It contains a list of locations and qualifiers which are used to describe this feature. It can be referred to by ID.
Definition at line 27 of file gnFeature.h.
|
Empty constructor.
Definition at line 18 of file gnFeature.cpp. Referenced by Clone(). |
|
Creates a memory feature with the specified name.
Definition at line 25 of file gnFeature.cpp. |
|
Copy constructor.
Definition at line 29 of file gnFeature.cpp. References gnBaseFeature::m_broken, gnBaseFeature::m_id, gnBaseFeature::m_locationList, gnBaseFeature::m_locationType, gnBaseFeature::m_name, gnBaseFeature::m_qualifierList, gnBaseFeature::m_spec, and uint32. |
|
Destructor, frees memory.
Definition at line 42 of file gnFeature.cpp. |
|
Adds a new location before the location at listI.
Definition at line 186 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream(). |
|
Adds a new qualifier.
Definition at line 216 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream(). |
|
Implements gnBaseFeature. Definition at line 58 of file gnFeature.h. References gnFeature(). |
|
Checks if the given feature is entirely contained by this feature.
Definition at line 146 of file gnBaseFeature.cpp. References gnBaseFeature::GetLocation(), gnBaseFeature::GetLocationListLength(), gnBaseFeature::m_locationList, and uint32. |
|
Checks if the given location is contained by this feature.
Definition at line 139 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList, and uint32. |
|
Checks if the given coordinate is contained by this feature.
Definition at line 131 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList, and uint32. |
|
Crops the locations of this feature to fit within the given location.
Definition at line 328 of file gnBaseFeature.h. References gnBaseFeature::CropEnd(), gnBaseFeature::CropStart(), gnLocation::GetEnd(), and gnLocation::GetStart(). |
|
Crops the end locations of this feature by the specified amount.
Definition at line 58 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList, and uint32. Referenced by gnBaseFeature::Crop(). |
|
Crops the start locations of this feature by the specified amount.
Definition at line 67 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList, and uint32. Referenced by gnBaseFeature::Crop(). |
|
Searches for a qualifier by name, starting at the index listI.
Definition at line 74 of file gnBaseFeature.cpp. References GNSEQI_END, gnBaseFeature::m_qualifierList, and uint32. |
|
Gets this feature's ID.
Definition at line 291 of file gnBaseFeature.h. References gnBaseFeature::m_id, and uint32. |
|
Gets the location at listI.
Definition at line 194 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList. Referenced by gnBaseFeature::Contains(), gnBaseFeature::Intersects(), and gnGBKSource::Write(). |
|
Returns the number of locations this feature describes.
Definition at line 324 of file gnBaseFeature.h. References gnBaseFeature::m_locationList, and uint32. Referenced by gnBaseFeature::Contains(), gnBaseFeature::Intersects(), gnSEQSource::ParseStream(), gnGBKSource::ParseStream(), and gnGBKSource::Write(). |
|
Gets this feature's location type.
Definition at line 316 of file gnBaseFeature.h. References gnLocation::gnLocationType, and gnBaseFeature::m_locationType. Referenced by gnGBKSource::Write(). |
|
Gets the feature name (e.g. CDS, trna...).
Definition at line 283 of file gnBaseFeature.h. References gnBaseFeature::m_name. Referenced by gnBaseFeature::SetQualifierValue(), and gnGBKSource::Write(). |
|
Gets the qualifier at the list index listI.
Definition at line 243 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList. Referenced by gnGBKSource::Write(). |
|
Returns the number of qualifiers in this feature.
Definition at line 332 of file gnBaseFeature.h. References gnBaseFeature::m_qualifierList, and uint32. Referenced by gnGBKSource::Write(). |
|
Gets the name of the qualifier at the list index listI.
Definition at line 231 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList. |
|
Gets the value of the qualifier at the list index listI.
Definition at line 237 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList. |
|
Gets the gnFragmentSpec to which this feature refers.
Definition at line 299 of file gnBaseFeature.h. References gnBaseFeature::m_spec. |
|
Looks for a qualifier by name.
Definition at line 224 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList, and uint32. |
|
Checks if the given feature intersects this feature.
Definition at line 173 of file gnBaseFeature.cpp. References gnBaseFeature::GetLocation(), gnBaseFeature::GetLocationListLength(), gnBaseFeature::m_locationList, and uint32. |
|
Checks if the given location intersects this feature.
Definition at line 166 of file gnBaseFeature.cpp. References gnLocation::Intersects(), gnBaseFeature::m_locationList, and uint32. |
|
Returns true if the feature is broken.
Definition at line 307 of file gnBaseFeature.h. References gnBaseFeature::m_broken. |
|
Checks if this feature is entirely contained by the given location.
Definition at line 158 of file gnBaseFeature.cpp. References gnLocation::Contains(), gnBaseFeature::m_locationList, and uint32. Referenced by gnGenomeSpec::AddFeature(). |
|
Searches for a qualifier by name, ending at the index listI.
Definition at line 86 of file gnBaseFeature.cpp. References GNSEQI_END, gnBaseFeature::m_qualifierList, and uint32. |
|
Decreases this feature's coordinates by a specific number of bases.
Definition at line 49 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList, and uint32. |
|
Increases this feature's coordinates by a specific number of bases.
Definition at line 41 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList, and uint32. Referenced by gnGenomeSpec::GetFeature(). |
|
Deletes the location at listI.
Definition at line 200 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList. |
|
Deletes the qualifier at the list index listI.
Definition at line 96 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList. |
|
Sets whether the feature is broken or not.
Definition at line 311 of file gnBaseFeature.h. References gnBaseFeature::m_broken. |
|
Sets this feature's ID.
Definition at line 295 of file gnBaseFeature.h. References gnBaseFeature::m_id. |
|
Sets the location at listI to a new location.
Definition at line 208 of file gnBaseFeature.cpp. References gnBaseFeature::m_locationList. |
|
Sets this feature's location type. LT_BetweenBases is not a valid feature location type.
Definition at line 320 of file gnBaseFeature.h. References gnBaseFeature::m_locationType. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream(). |
|
Sets the feature name.
Definition at line 287 of file gnBaseFeature.h. References gnBaseFeature::m_name. |
|
Set the name and value of the qualifier at the list index listI.
Definition at line 104 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList. |
|
Set the name of the qualifier at the list index listI.
Definition at line 112 of file gnBaseFeature.cpp. References gnBaseFeature::m_qualifierList. |
|
Set the value of the qualifier at the list index listI.
Definition at line 121 of file gnBaseFeature.cpp. References gnBaseFeature::GetName(), and gnBaseFeature::m_qualifierList. |
|
Sets the gnFragmentSpec to which this feature refers.
Definition at line 303 of file gnBaseFeature.h. References gnBaseFeature::m_spec. Referenced by gnFragmentSpec::AddFeature(). |
|
Definition at line 275 of file gnBaseFeature.h. Referenced by gnBaseFeature::gnBaseFeature(), gnFeature(), gnBaseFeature::IsBroken(), and gnBaseFeature::SetBroken(). |
|
Definition at line 273 of file gnBaseFeature.h. Referenced by gnBaseFeature::GetID(), gnBaseFeature::gnBaseFeature(), gnFeature(), and gnBaseFeature::SetID(). |
|
|
Definition at line 276 of file gnBaseFeature.h. Referenced by gnBaseFeature::GetLocationType(), gnBaseFeature::gnBaseFeature(), gnFeature(), and gnBaseFeature::SetLocationType(). |
|
Definition at line 274 of file gnBaseFeature.h. Referenced by gnBaseFeature::GetName(), gnBaseFeature::gnBaseFeature(), gnFeature(), and gnBaseFeature::SetName(). |
|
|
Definition at line 279 of file gnBaseFeature.h. Referenced by gnBaseFeature::GetSpec(), gnBaseFeature::gnBaseFeature(), gnFeature(), and gnBaseFeature::SetSpec(). |