Hey guys,
I have tons of protein multi-fasta files and I would like to append the name of the file to the fasta-headers. For example, for a input file one.txt with the headers
>1
ATGC...
>2
ATGCAT...
I would like to have the output
>one_1
ATGC...
>one_2
ATGCAT...
I use bbrename for DNA sequences, but doesn't work for protein files. Thanks!
https://www.unix.com/unix-for-dummies-questions-and-answers/242665-append-file-name-fasta-file-headers-linux-2.html
your example files also don't really looks to be protein either ...