Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: renaming 1000's of FASTA files

by CountZero (Bishop)
on Jul 12, 2011 at 13:18 UTC ( #913915=note: print w/replies, xml ) Need Help??

in reply to Re^2: renaming 1000's of FASTA files
in thread renaming 1000's of FASTA files

You realize you have a problem here?

You keep a hash with key the ID without the ending of "_xxx" and value the ID with the ending. But a hash-element can have only ONE value, so you overwrite the older elements with the newer, unless you take care and store the IDs in an array and then store the arrayref as a value in the hash-element.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-08-07 18:11 GMT
Find Nodes?
    Voting Booth?

    No recent polls found