Click or drag to resize
LocationResolver Class
This is the default implementation of ILocationResolver. This class resolves the start and end positions of a location. Please see the following table for how this class resolves the ambiguities in start and end data. Start/End Data Resolved Start Resolved End 12.30 12 30 >30 30 30 <30 30 30 23^24 23 24 100^1 1000 1
Inheritance Hierarchy
SystemObject
  Bio.IO.GenBankLocationResolver

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

The LocationResolver type exposes the following members.

Constructors
  NameDescription
Public methodLocationResolver
Default constructor.
Top
Methods
  NameDescription
Public methodClone
Returns the new LocationResolver instance that is a copy of this instance.
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 methodGetEnd
Returns the end position by resolving the end-data present in the specified location. If unable to resolve end-data then an exception will occur.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetStart
Returns the start position by resolving the start-data present in the specified location. If unable to resolve start-data then an exception will occur.
Public methodGetSubSequence(ILocation, ISequence)
Returns a sequence which contains bases from the specified sequence as specified by the location. If the location of a feature and sequence in which the feature is present is specified then this method returns a sequence which contains the bases of the specified feature. Please note that, 1. If Accession of the location is not null or empty then an exception will occur. 2. If the location contains "order" operator then this method uses SegmentedSequence class to construct the sequence. For example, order(100..200,300..450) will result in a SegmentedSequence which internally contains two sequences, first one created from 100 to 200 bases, and second one created from 300 to 450 bases.
Public methodGetSubSequence(ILocation, ISequence, DictionaryString, ISequence)
Returns a sequence which contains bases from the specified sequence as specified by the 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 location is "join(100..200, J00089.1:10..50, J00090.2:30..40)" then bases from 100 to 200 will be considered 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
Return true if the specified position is within the end position. For example, if the end-data of a location is "23.40", this method will return true for the position values ranging from 23 to 40.
Public methodIsInRange
Returns true if the specified position is with in the start and end positions.
Public methodIsInStart
Return true if the specified position is within the start position. For example, if the start-data of a location is "23.40", this method will return true for the position values ranging from 23 to 40.
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