Click or drag to resize
Location Class
Location, holds the feature location information. This is the default implementation of the ILocation interface. This holds Start and End points of location. If in case location refers to some other sequence (for example, J00194.1:1..150) then the accession number information should be stored in the Accession property. Resolver property is used to resolve any ambiguity in the location start-data and end-data. By default this will be set to an instance of LocationResolver class.
Inheritance Hierarchy
SystemObject
  Bio.IO.GenBankLocation

Namespace: Bio.IO.GenBank
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class Location : ILocation, IComparable

The Location type exposes the following members.

Constructors
  NameDescription
Public methodLocation
Default constructor.
Top
Properties
  NameDescription
Public propertyAccession
Accession number of referred sequence.
Public propertyEndData
Gets or sets the end position data. All positions are one based.
Public propertyLocationEnd
Gets the end position of the location. Note that this is one based position.
Public propertyLocationStart
Gets the start position of the location. Note that this is one based position.
Public propertyOperator
Operator like none, complement, join and order.
Public propertyResolver
Gets or sets the ILocationResolver instance used to resolve ambiguity in start-data and end-data
Public propertySeparator
Start and end positions separator.
Public propertyStartData
Gets or sets the start position data. All positions are one based.
Public propertySubLocations
Sub locations.
Top
Methods
  NameDescription
Public methodClone
Creates a new Location that is a copy of the current Location.
Public methodCompareTo
Compares this instance to a specified object and returns an indication of their relative values.
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 methodGetLeafLocations
Gets the leaf locations present in this location.
Public methodGetSubSequence(ISequence)
Returns a sequence which contains bases from the specified sequences as specified by this location.
Public methodGetSubSequence(ISequence, DictionaryString, ISequence)
Returns a sequence which contains bases from the specified sequences as specified by this location. If the location contains accession then the sequence from the referredSequences which matches the accession of the location will be considered. For example, If a location is "join(100..200, J00089.1:10..50, J00090.2:30..40)" bases from 100 to 200 will be taken from the sequence parameter and referredSequences will be searched for the J00089.1 and J00090.2 accession if found then those sequences will be considered for constructing the output sequence. If the referred sequence is not found in the referredSequences then an exception will occur.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsInEnd
Returns true if the specified position is within the end positions of the location.
Public methodIsInRange
Returns true if the specified position is within the start and end positions of the location.
Public methodIsInStart
Returns true if the specified position is within the start positions of the location.
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