Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Bioinformatics project feedback request.

by runrig (Abbot)
on Jul 02, 2013 at 19:13 UTC ( #1042078=note: print w/replies, xml ) Need Help??


in reply to Bioinformatics project feedback request.

How long are your strings going to be? If they are going to be huge (e.g., in the gigabytes), you will want to pass around references to the string to your subroutines. E.g.:
sub bp_count { my ($data) = @_; # obtain the count of each nucleotide in the sequence my $a_count = ($$data =~ tr/Aa//); my $c_count = ($$data =~ tr/Cc//); my $g_count = ($$data =~ tr/Gg//); my $t_count = ($$data =~ tr/Tt//); return ($a_count, $c_count, $g_count, $t_count); } # Called with: bp_count(\$string);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042078]
help
Chatterbox?
[erix]: wtf -- what's the idea, is this trolling, advertising, or what?
[Discipulus]: but realisticly choroba your company would a hire a programmer as me?
Discipulus spent ~3 hours on the roof.. with mediocre results..
[Eily]: what were you trying to do on the roof Discipulus?
[Eily]: if I had done the same here, I'd contain a swimming-pool worth of water by now...
[Discipulus]: i put some shodowing cloth against the killer sun. but i'm still not happy with this
Discipulus roof? or terrace? well is flat anyway, parallel to the ground
[Eily]: upper ground :P

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-06-29 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (664 votes). Check out past polls.