Closed Thread
Results 1 to 9 of 9

Thread: local/global alignment

  1. #1
    lichy is offline Newbie
    Join Date
    Jun 2007
    Posts
    17
    Rep Power
    0

    local/global alignment

    hi,

    how to make local/global alignment by using perl.

    i dont need the code for the time being, just need step by step methods to do so.

    thanks for the help.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    NeedHelp Guest
    What is a local/global alignment?

  4. #3
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    local() is a builtin perl function that defines a global perl variable with a temporary value inside a block of code. For example, "$/" is a global perl variable, you would use local() to temporarily change it's value:

    Code:
    here $/ has its default value
    
    sub do_this {
       local $/ = "\n\n";
       .....
    }
    
    here $/ has it's default value again

  5. #4
    lichy is offline Newbie
    Join Date
    Jun 2007
    Posts
    17
    Rep Power
    0
    Quote Originally Posted by KevinADC View Post
    local() is a builtin perl function that defines a global perl variable with a temporary value inside a block of code. For example, "$/" is a global perl variable, you would use local() to temporarily change it's value:

    Code:
    here $/ has its default value
    
    sub do_this {
       local $/ = "\n\n";
       .....
    }
    
    here $/ has it's default value again
    wah! eh... can explain in detail? sorry about that. my knowledge in perl is very litmited.

  6. #5
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    I am not even sure I know what your original question was because there is no such thing as "alignment" that I know of. I assumed you were asking about global or local scope of perls global variables, but maybe I have assumed wrongly. Please clarify your original question.

  7. #6
    lichy is offline Newbie
    Join Date
    Jun 2007
    Posts
    17
    Rep Power
    0
    oh i'm sorry.

    eh local/global alignment, is actually like a matching strings.

    for example

    user input two strings

    1st string: AGTTCAGCA

    2nd string: ATCATCA

    after some programming using perl language,

    the output will become

    AGTTCAGCA
    A- T -CATCA

    the best result.

    i have no idea how to program it.
    Last edited by lichy; 09-30-2007 at 08:55 PM.

  8. #7
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    I guess you mean local/global in terms of DNA and not perl? I have told you previously my personal policy for helping students, I will not help with code unless you post some code that shows an honest effort at solving the problem first.

  9. #8
    lichy is offline Newbie
    Join Date
    Jun 2007
    Posts
    17
    Rep Power
    0
    no, i think you get the wrong idea. i'm not here for codes or whatsoever.

    i just need someone to help me by breaking down this programming into simpler parts.

    cause the situation now is that i dont even know how to start.

    i dont know how to calculate it to achieve the result here.

    and yes, it's local/global alignment for dna. sorry for not clarifying that previously.

  10. #9
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    Well, I don't know what local/global alignment in DNA terms is. You posted two strings and a final output, but I have no idea what the algorithim or criteria is for acheiving the final output based on the input. Have you ever looked into bioperl?

    Main Page - BioPerl

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Alignment issue on IE8
    By newphpcoder in forum JavaScript and CSS
    Replies: 2
    Last Post: 09-20-2010, 02:16 AM
  2. Div alignment issues
    By blackriderrom in forum JavaScript and CSS
    Replies: 1
    Last Post: 01-26-2010, 11:14 AM
  3. Size of global and local variables
    By ayiesal in forum C and C++
    Replies: 5
    Last Post: 03-22-2009, 07:17 AM
  4. Memory Alignment
    By roboticforest in forum C and C++
    Replies: 7
    Last Post: 01-07-2009, 08:04 PM
  5. alignment
    By John in forum HTML Programming
    Replies: 5
    Last Post: 01-01-2007, 02:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts