Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by kennethk (Monsignor)
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 pondering the Monastery: (6)
As of 2014-09-01 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls