This script is needed for programs like secretomep that truncate fasta ids.
We need to be able to uniquely identify each fasta entry so this script renames the ids with a numeric scheme
It also produces a mapping file from old to new ids so the original ids can be recovered later
Use it like this
./rename_fasta.rb yourfasta.fasta
If you get an error about permissions you may need to do this first
chmod u+x rename_fasta.rb