Thank you very much. It's work fine.
• 0 views
•
link
Hi all,
I have a question about renaming my sequences in fasta format. I have 36,008 nucl. sequences and I need (want) rename them according to the following form. For every sequence, after > mark should follow string E_nip_trans_ (for all sequences) and after this I want place only digit string with length five, growing by one (from 00001 to 36008). But I don't have any idea how to do it.
>E_nip_trans_00001
>E_nip_trans_00002
>E_nip_trans_00003
> ...
>E_nip_trans_00010
>
> ...
>E_nip_trans_00111
>
> ...
>E_nip_trans_36008
Thank you for reply!
awk '/^>/ {printf("%05i\n",i+1); i+=1; next;} {print $0;}' /path/to/your/fasta/file
Log in to answer this question.