Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: fasta file

by molecules (Monk)
on Sep 26, 2011 at 23:03 UTC ( #927972=note: print w/ replies, xml ) Need Help??


in reply to fasta file

You need to check that $accession{$g} exists before using it. Something like changing the line

 if ($accession{$g} =~ m/$accession_id/i){
to
 if (exists $accession{$g} && $accession{$g} =~ m/$accession_id/i){

should do the trick.


EDIT: BrowserUK posted an answer while I was composing mine. His is more comprehensive.


Comment on Re: fasta file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-07 08:07 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 (87 votes), past polls