Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-03-28 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found