LocationResolverGetSubSequence Method |
Name | Description | |
---|---|---|
GetSubSequence(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.
| |
GetSubSequence(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.
|