Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.

by kennethk (Abbot)
on Feb 13, 2013 at 19:53 UTC ( #1018617=note: print w/ replies, xml ) Need Help??


in reply to Re: Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.
in thread Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.

For future reference, perlmonks linkifies anything between [ and ], so locations in the posted code that display as links should actually be array indices or character classes. For example

if ( $_ 0 =~ / GGAGCU /i ) { return G;} # Glycine;
is printed above as

if ( $_ 0 =~ / GGAGCU /i ) { return G;} # Glycine;

and should therefore actually probably be translated as

if ( $_[0] =~ /GG[AGCU]/i ) { return G;} # Glycine;
barring ambiguities with regard to whitespace counts. Not that I've done this before....

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re^2: Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2015-07-31 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (277 votes), past polls