Helper Methods |
The Helper type exposes the following members.
Name | Description | |
---|---|---|
ASCIIEncoding |
Simple method to take a byte array and convert it to ASCII string.
| |
BigMul |
Helper method for large multiplication - this function is missing
from the portable profile.
| |
CheckCondition(Boolean) |
Confirms that a condition is true. Raise an exception if it is not.
| |
CheckCondition(Boolean, FuncString) |
Confirms that a condition is true. Raise an exception if it is not.
| |
CheckCondition(Boolean, String) |
Confirms that a condition is true. Raise an exception if it is not.
| |
CheckCondition(Boolean, String, Object) |
Confirms that a condition is true. Raise an exception if it is not.
| |
CheckConditionT(Boolean) |
Confirms that a condition is true. Raise an exception of type T if it is not.
| |
CheckConditionT(Boolean, FuncString) |
Confirms that a condition is true. Raise an exception if it is not.
| |
CheckConditionT(Boolean, String) |
Confirms that a condition is true. Raise an exception of type T if it is not.
| |
CheckConditionT(Boolean, String, Object) |
Confirms that a condition is true. Raise an exception if it is not.
| |
Copy(Array, Array, Int64) |
Copies source array to destination array.
| |
Copy(Array, Int64, Array, Int64, Int64) |
Copies source array to destination array.
| |
CreateDelimitedString |
Creates a delimited string containing the object's string values.
| |
CreateTabString |
Creates a tab-delimited string containing the object's string values.
| |
FileEndsWithZippedExtension |
Determine if file ends with extension ".gz"
| |
GenerateAlphabetCheckFailureException |
Create a useful error message when a sequence fails validation.
| |
GetCrossReferenceLink |
Returns a string which represents specified CrossReferenceLink.
| |
GetGenBankAccession |
Returns a string which represents specified GenBankAccession.
| |
GetHexString |
Gets the HexString from the specified byte array.
| |
GetInt16 |
Returns 16 bit signed integer from the byte array stored as little-endian.
| |
GetInt32 |
Returns 32 bit signed integer from the byte array stored as little-endian.
| |
GetLittleEndianByteArray(Int16) |
Gets a byte array which represents value of 16 bit singed integer in LittleEndian format.
| |
GetLittleEndianByteArray(Int32) |
Gets a byte array which represents value of 32 bit singed integer in LittleEndian format.
| |
GetLittleEndianByteArray(Single) |
Gets byte array which represents value of float in LittleEndian format.
| |
GetLittleEndianByteArray(UInt16) |
Gets a byte array which represents value of 16 bit unsinged integer in LittleEndian format.
| |
GetLittleEndianByteArray(UInt32) |
Gets a byte array which represents value of 32 bit unsigned integer in LittleEndian format.
| |
GetMatePairedReadType |
Gets the mate paired read type.
That is for F/1/X1 it provides R/2/Y1.
| |
GetNormalRandom(Double, Double) |
Returns random numbers according to an approximate normal distribution
with an average and standard deviation set by the caller.
| |
GetNormalRandom(Double, Double, Int32) |
Returns random numbers according to an approximate normal distribution
with an average and standard deviation set by the caller. This is done iteratively
using the central limit theorem.
| |
GetPairedReadId |
Concatenates the specified original sequence id, paired read type and library name to paired read id format.
| |
GetProjectIdentifier |
Returns a string which represents specified ProjectIdentifier.
| |
GetReadIdExcludingOtherInfo |
Returns the id exluding the otherinformation part from it.
| |
GetReverseComplement |
Get reverse complement of sequence string.
Handles only unambiguous DNA sequence strings.
Note: This method is a light-weight implementation of sequence.ReverseComplement.
This only works for unambiguous DNA sequences, which is characteristic of the input for de-novo.
| |
GetSequenceRange |
Get a range of sequence.
| |
GetSequenceSegment |
Returns a string which represents specified SequenceSegment.
| |
GetSingle |
Returns float from the byte array.
| |
GetStrandTopology(String) |
Returns a SequenceStrandTopology corresponds to the specified string.
| |
GetStrandTopology(SequenceStrandTopology) |
Returns a string which represents specified SequenceStrandTopology.
| |
GetStrandType(String) |
Returns a SequenceStrandType corresponds to the specified string.
| |
GetStrandType(SequenceStrandType) |
Returns a string which represents specified SequenceStrandType.
| |
GetString |
Gets string representing specified delta alignment.
This method is used in comparative Utilities to write delta alignments to file.
| |
GetUInt16 |
Returns 16 bit unsigned integer from the byte array stored as little-endian.
| |
GetUInt32 |
Returns 32 bit unsigned integer from the byte array stored as little-endian.
| |
GetUInt64 |
Returns 32 bit unsigned integer from the byte array stored as little-endian.
| |
IsBAM |
Identifies if a file extension is a
valid extension for BAM formats.
| |
IsFasta |
Identifies if a file extension is a
valid extension for FASTA formats.
| |
IsFastQ |
Identifies if a file extension is a
valid extension for FastQ formats.
| |
IsGenBank |
Identifies if a file extension is a
valid extension for GenBank formats.
| |
IsValidPatternValue(String, String, String) |
Validates specified value with the specified regular expression pattern.
| |
IsValidPatternValue(String, String, Regex) |
Validates specified value with the specified regular expression.
| |
IsValidRange |
Validates int value.
| |
IsValidRegexValue(String, String) |
Validates specified value with the specified regular expression.
| |
IsValidRegexValue(Regex, String) |
Validates specified value with the specified regular expression.
| |
IsZippedFasta |
Identifies if a file extension is a
valid extension for FASTA formats that is gzipped.
| |
IsZippedFastQ |
Identifies if a file extension is a
valid extension for a gzipped FastQ formats.
| |
KeysEqualTKey, TValue1, TValue2 |
Efficiently (log n) test if two dictionaries have the same key set.
| |
RemoveSequencePolyTail |
Get a Sequence Poly Tail.
| |
SplitSequence |
Split sequence for Iron poython.
| |
StringContainsIllegalCharacters |
Determines if the string contains any characters specified in the list.
| |
StringHasMatch |
See if test string is identical to any of the passed list of strings.
| |
StringMultiply |
String Multiply. Build a string by concatenating copies of the input string.
| |
ValidatePairedSequenceId |
Validates the specified sequence id is in the format of paired read or not.
If so then gets the original sequence id, paired read type and library name from the paired sequence id.
For Example:
if the sequence id is "seq1.F:10K!324;abcd;345" then this method will return true and
originalSequenceId - "seq1"
pairedReadType - "F"
libraryName - "10K"
if the sequence id is not in the format of "originalSequenceId.{F,R}:LibraryName"
or "originalSequenceId.{F,R}:LibraryName!otherInfo" then this method will return false.
| |
WrapAroundLeftShift |
Shifts the bits of an int around in a wrapped way. It is useful for creating hashcodes of collections.
|