| XBlastHit Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: Biolomics.BioCallback
 Syntax
SyntaxThe XBlastHit type exposes the following members.
 Constructors
Constructors Properties
Properties| Name | Description | |
|---|---|---|
|  | Accession | 
 Gets the accession.
  | 
|  | BlastHitHspList | 
 Gets the blast hit HSP list.
  | 
|  | Def | 
 Gets the definition.
  | 
|  | Id | 
 Gets the Id.
  | 
|  | Len | 
 Gets the length.
  | 
|  | Num | 
 Gets the number.
  | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | BlastHitType | 
 Gets the BlastHitType .
  | 
|  | Direction | 
 Direction: string representation of the direction 'x/y' with:
	 x = '+' (Forward) or '-' (Backward) for the Query
	 y = '+' (Forward) or '-' (Backward) for the Subject
  | 
|  | Equals | Determines whether the specified object is equal to the current object.(Inherited from Object.) | 
|  | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) | 
|  | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | GlobalOverlap | 
 calculates the global overlap for all matching hits.
  | 
|  | GlobalProbability | 
  Returns the probability of the best hit segment pair
  | 
|  | GlobalScore | 
 Returns the bit_score of the best hit segment pair.
  | 
|  | GlobalSimilarity | 
  global similarity rate given by : (Total identity / Total length).
  | 
|  | GreatestHitHsp | 
Returns the bit_score of the best hit segment pair.
  | 
|  | MemberwiseClone | Creates a shallow copy of the current Object.(Inherited from Object.) | 
|  | ToString | 
 Returns a String that represents this instance.
 (Overrides ObjectToString.) | 
|  | TotalLen | 
 TotalLen: calculates the total length of the alignment segments
  | 
 Operators
Operators| Name | Description | |
|---|---|---|
|   | Equality | 
 Implements the operator =.
  | 
|   | Inequality | 
 Implements the operator <> operator.
  | 
 Examples
ExamplesImports System Imports BioloMICS.BioCallback Imports BioloMICS.SharedClasses Imports System.Collections Public Class Program <STAThread()> Shared Sub Main() ' Create an instance of class Program and call its functions Dim c As New Program c.PairwiseAlignmentAgainstGenbank() End Sub Public Sub PairwiseAlignmentAgainstGenbank() ' ********** Align with Genbank ******** Dim QueryFastaFile As String = "Your_Fasta_File_Path\Sequences.fas" 'full path of Fasta formatted file to be aligned with a reference database available from Genbank Dim resultFastaFile As String = "Your_ResultFastaFile_Name.fas" 'full path of Fasta formatted file to be aligned with a reference database available from Genbank ' Genbank database. Possible options are: '"nr", "pat", "pdb", "month", "refseq_rna", "refseq_genomic", "est", "est_human", "est_mouse", "est_others", "gss", "htgs", "dbsts", "chromosome", "wgs", "env_nt" Dim MaxTimeMinutesAllowed As Integer = 2 ' maximum allowed time in minutes for a single query to be done. If longer, process will be canceled Dim StartTime As System.DateTime = System.DateTime.Now Dim Options As New XBlastOptions ' for your information, default values are: Options.GapCreationPenalty = 12 Options.GapExtensionPenalty = 2 Options.PenaltyMisMatch = -2 Options.RewardMatch = 1 Options.WordSize = 11 Options.MaxSequencesDisplayed = 100 Options.MaxTimeMinutesAllowed = 5 Options.SortingMode = BlastSortingModeEnum.Rating ' you can change these options: Options.MaxSequencesDisplayed = 5 ' make a list for the results Dim Results As New Generic.List(Of Generic.List(Of XBlastHit)) ' query Genbank Dim ErrorCode As Integer = Run.BlastAlignWithGenbank(Results, resultFastaFile, QueryFastaFile, Options, GenBankDBNameEnum.nr) Dim ElapsedTicks As Long = System.DateTime.Now.Ticks - StartTime.Ticks Dim ElapsedSpan As New TimeSpan(ElapsedTicks) If ErrorCode = 0 Then Console.Write("Job done in " & CStr(ElapsedSpan.TotalSeconds) & " seconds") Console.Write("Results can then be viewed using the 'Open previous pairwise alignments (NxM)' menu under the 'Sequences' menu of the main BioloMICS Editor window") ' but you can also use the XBlastHit properties directly. Else For Each Err As String In Run.GetLastErrorMessage() Console.Write(Err) Next End If End Sub End Class
 See Also
See Also