Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > Perl

Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-25-2007, 02:20 AM
lichy lichy is offline
Newbie
 
Join Date: Jun 2007
Posts: 17
Rep Power: 4
lichy is on a distinguished road
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 09-25-2007, 08:51 AM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Rep Power: 11
NeedHelp is on a distinguished road
Default

What is a local/global alignment?
__________________
I Need Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-25-2007, 12:39 PM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 87
Rep Power: 6
KevinADC is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-27-2007, 02:33 AM
lichy lichy is offline
Newbie
 
Join Date: Jun 2007
Posts: 17
Rep Power: 4
lichy is on a distinguished road
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-28-2007, 01:24 AM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 87
Rep Power: 6
KevinADC is on a distinguished road
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 09-30-2007, 10:53 PM
lichy lichy is offline
Newbie
 
Join Date: Jun 2007
Posts: 17
Rep Power: 4
lichy is on a distinguished road
Default

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 10:55 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-01-2007, 11:43 PM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 87
Rep Power: 6
KevinADC is on a distinguished road
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-02-2007, 12:03 AM
lichy lichy is offline
Newbie
 
Join Date: Jun 2007
Posts: 17
Rep Power: 4
lichy is on a distinguished road
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-02-2007, 02:08 AM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 87
Rep Power: 6
KevinADC is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
alignment John HTML Programming 5 01-01-2007 04:16 AM


All times are GMT -5. The time now is 05:23 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads