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

Re: renaming 1000's of FASTA files

by Cristoforo (Deacon)
on Jul 11, 2011 at 16:53 UTC ( #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).

Comment on Re: renaming 1000's of FASTA files
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-11-30 14:26 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (771 votes), past polls