Click or drag to resize
LocationRange Class
Holds start and end position of a feature in a sequence. For example: If location of a feature is "join(1..100,J00194.1:100..202)" then we need to two LocationRange instance to hold this location. First LocationRange will be Accession - empty StartPosition -1 EndPosition - 100 Second LocationRange will be Accession - J00194.1 StartPoistion - 100 EndPosition 1 200 Note that the GenBank feature location can be parsed using static method "GetLocationRanges" in GenBankMetadata class. For example: GenBankMetadata.GetLocationRanges("join(1..100,J00194.1:100..202)") this will return list of LocationRanges.
Inheritance Hierarchy
SystemObject
  Bio.IO.GenBankLocationRange

Namespace: Bio.IO.GenBank
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class LocationRange

The LocationRange type exposes the following members.

Constructors
  NameDescription
Public methodLocationRange
Default constructor.
Public methodLocationRange(Int32, Int32)
Creates a new LocationRange instance from the specified start and end position.
Public methodLocationRange(String, Int32, Int32)
Creates a new LocationRange instance from the specified accession, start and end position.
Top
Properties
  NameDescription
Public propertyAccession
Gets or sets the Accession.
Public propertyEndPosition
Gets or sets the end position.
Public propertyStartPosition
Gets or sets the start position.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also