Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: formatting output question (use of recursive subroutine?)

by FunkyMonk (Chancellor)
on Jul 29, 2008 at 15:15 UTC ( [id://700833]=note: print w/replies, xml ) Need Help??


in reply to formatting output question (use of recursive subroutine?)

ref agctagctagctagcatgctagctagctgatcgatgctagctagctgactgacgacg out1 atctagcat agctagcgatcga gactgacagc out2 tagctagctgctagc out3 agtcgatcgatgctagc
How do you define a match? I wouldn't say any of those strings matched anywhere.

Unless I state otherwise, all my code runs with strict and warnings

Replies are listed 'Best First'.
Re^2: formatting output question (use of recursive subroutine?)
by pc88mxer (Vicar) on Jul 29, 2008 at 15:55 UTC
    I think in this context (DNA sequence matching) allowances are made for a small number of insertions, deletions and changes.
Re^2: formatting output question (use of recursive subroutine?)
by rogerd (Sexton) on Jul 29, 2008 at 22:45 UTC

    Yes, that example doesn't match at all. I just write some atcg letters to put as an example. The matching was done previously, and now I am interested in formatting the results I had previusly.

    The important thing here is that each substring should vertically match with the reference string, in the position that I have previously stored. Each of the substrings is one result: in this example, the line out1 have 3 different substrings, and out2 and out3 have one each (they are in different lines because they are overlapped).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://700833]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:13 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found