DerivedSequence Class |
Namespace: Bio
The DerivedSequence type exposes the following members.
Name | Description | |
---|---|---|
DerivedSequence |
Initializes a new instance of the DerivedSequence class.
|
Name | Description | |
---|---|---|
Alphabet |
Gets the alphabet to which symbols in this sequence belongs to.
| |
Count |
Gets the number of bytes contained in the Sequence.
| |
ID |
Gets or sets an identifier for this instance of sequence class.
| |
Item |
Returns the byte found at the specified index if within bounds. Note
that the index value starts at 0.
| |
Metadata |
Many sequence representations when saved to file also contain
information about that sequence. Unfortunately there is no standard
around what that data may be from format to format. This property
allows a place to put structured metadata that can be accessed by
a particular key.
For example, if species information is stored in a particular Species
class, you could add it to the dictionary by:
mySequence.Metadata["SpeciesInfo"] = mySpeciesInfo;
To fetch the data you would use:
Species mySpeciesInfo = mySequence.Metadata["SpeciesInfo"];
Particular formats may create their own data model class for information
unique to their format as well. Such as:
GenBankMetadata genBankData = new GenBankMetadata();
// ... add population code
mySequence.MetaData["GenBank"] = genBankData;
|
Name | Description | |
---|---|---|
ConvertToString |
Converts part of the sequence to a string.
| |
CopyTo |
Copies all items from the sequence to a pre allocated array.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetComplementedSequence |
Return a new sequence representing the complement of this sequence.
| |
GetEnumerator |
Gets an enumerator to the bytes present in this sequence.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetReverseComplementedSequence |
Return a new sequence representing the reverse complement of this sequence.
| |
GetReversedSequence |
Return a new sequence representing this sequence with the orientation reversed.
| |
GetSubSequence |
Return a new sequence representing a range (subsequence) of this sequence.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOfNonGap |
Gets the index of first non-gap symbol.
| |
IndexOfNonGap(Int64) |
Returns the position of the first symbol beyond startPos that does not
have a Gap symbol.
| |
LastIndexOfNonGap |
Gets the index of last non-gap symbol.
| |
LastIndexOfNonGap(Int64) |
Returns the index of last non-gap symbol before the specified end position.
| |
ToString |
Returns a string representation of the sequence data. This representation
will come from the symbols in the alphabet defined for the sequence.
Thus a Sequence whose Alphabet is Alphabets.DNA may return a value like
'GATTCCA'
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
AppendByte(Byte) | Overloaded.
Yield an Enumeration of the list with the item appended to the end
(Defined by IEnumerableExtensions.) | |
AppendByte(IEnumerableByte) | Overloaded.
Yield a concatenation of the two Enumerable lists
(Defined by IEnumerableExtensions.) | |
ConvertToString |
Converts the sequence to a string.
(Defined by SequenceExtensions.) | |
ElementAtByte |
Returns the element at a specified index in a sequence.
(Defined by IEnumerableExtensions.) | |
ForEachByte(ActionByte) | Overloaded.
Calls an action on each element of a sequence. The action takes one argument: an element. It has no return value.
(Defined by IEnumerableExtensions.) | |
ForEachByte(ActionByte, Int32) | Overloaded.
Calls an action on each element of a sequence. The action takes two arguments: an element and the index of the element.
It has no return value.
(Defined by IEnumerableExtensions.) | |
IsMarkedAsReverseComplement |
This checks for a sequence marker to determine if the given ISequence was generated from
a reverse complement.
(Defined by SequenceExtensions.) | |
MarkAsReverseComplement |
This adds a key to the Metadata to indicate this is a reversed sequence
(Defined by SequenceExtensions.) | |
ShuffleByte |
Shuffles the elements of a sequence.
(Defined by IEnumerableExtensions.) | |
StringJoin | Overloaded.
Creates a string from a sequence of elements. No delimiter is used.
(Defined by IEnumerableExtensions.) | |
StringJoin(String) | Overloaded.
Creates a delimited string from a sequence of elements.
(Defined by IEnumerableExtensions.) | |
StringJoin(String, Int32, String) | Overloaded.
Creates a delimited string from a sequence of elements. At most maxLength elements will be used and "..." shows that more elements were in the list.
(Defined by IEnumerableExtensions.) | |
SubSequenceByte |
Take the items from a sequence starting with item # start (index 0) and contining for count items.
(Defined by IEnumerableExtensions.) | |
ToHashSetByte | Overloaded.
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
(Defined by IEnumerableExtensions.) | |
ToHashSetByte(IEqualityComparerByte) | Overloaded.
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
(Defined by IEnumerableExtensions.) | |
ToQueueByte |
Creates a Queue from a sequence. If the sequence is already a Queue, a new Queue is still created.
(Defined by IEnumerableExtensions.) |