Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


String Alignment Using VBScript & C Sheel Script

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,405
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> String Alignment Using VBScript & C Sheel Script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 String Alignment Using VBScript & C Sheel Script - 10/1/2001 8:16:47 AM   
  acekingman2000

 

Posts: 1
Score: 0
Joined: 10/1/2001
From:
Status: offline
String alignment as proposed by Needleman and Wunch aims to minimise the edit distance from string one to string two where the edit distance is the sequence of inserts/deletes to convert string one to string two. The operations of match, insert and delete are given a cost such as 0 for a match and ?V1 for an insert /delete. The string with the least cost describes the alignment. The algorithm described by Needleman and Wunch is recursive and NOT the one you will implement given that you are using shell scripts.

My Problem is that how do you use "Windows Scripting Host with Vbscript under Windows" to create such a script.

I have to write the script such that it accepts two strings of characters made up of the letters A,C,G,T. The string can be up to 20 characters long. For example,

stringX= gaacgtaggcgtat and stringY=ATACTACGGAGGG would have an optimal alignment GAACGTAGGCGTAT

Write the script such that it accepts two strings of characters made up of the letters A,C,G,T. The string can be up to 20 characters long. For example,

stringX= gaacgtaggcgtat and stringY=ATACTACGGAGGG would have an optimal alignment GAACGTAGGCGTAT ATACT_ACGGAGG_G

Some suggest that my algorithm should be in the form of:

Initialisation

?K.

For I = I to length(stringX)

?K..

For J = 1 to length(stringY)

If stringX[I]=stringY[J] then

Match

?K.

Else

Mismatch

?K..

endif

next J

?K.

Next I

Your output should be the list of the possible alignments in cost order. You may use utilities like sort and head for the Unix case. For the Windows case, write the results to an excel spreadsheet, sort the columns and find the minimum value.

Can anyone here help with my problem with VBScript and UNIX's C Shell Scripting?

Thank you
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> String Alignment Using VBScript & C Sheel Script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts