Thread
:
Adding counting Contig number at the start of Fasta Sequences
View Single Post
05-12-2015, 06:50 AM
#
3
GenoMax
Senior Member
Location: East Coast USA
Join Date: Feb 2008
Posts: 7,091
How about this?
Code:
$ awk '{if (/^>/) print ">Contig_"(++i)"_" substr($0,2); else print $0;}' your_file > new_file
GenoMax
View Public Profile
Send a private message to GenoMax
Find More Posts by GenoMax