Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: renaming 1000's of FASTA files

by Cristoforo (Curate)
on Jul 11, 2011 at 16:53 UTC ( [id://913728]=note: print w/replies, xml ) Need Help??


in reply to renaming 1000's of FASTA files

The script puts all the lines from the .txt file in a hash

It just keeps creating a new 1 element hash

%seq_id = ("$fasta_id" => "$_");

you would need to say instead
$seq_id{ $fasta_id } = $_;

However, moritz has shown the better solution (instead of reopening the file over and over).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-25 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found