Modify Fasta headers
1
0
Entering edit mode
6.0 years ago
utkarsh.sood ▴ 40

can I modify the following headers

>gi|392981410|ref|NC_018080|pseudocap|273_483_2027_+

>gi|392981410|ref|NC_018080|pseudocap|273_2056_3159_+

so on

to

>protein 1 [Pseudomonas aeruginosa 19BR]

>protien 2 [Pseudomonas aeruginosa 19BR]

so onĀ 

sequence • 1.5k views
ADD COMMENT
3
Entering edit mode
6.0 years ago
awk 'BEGIN{counts=1} { if ($0 ~ /^>/)  { print ">protein "counts" [Pseudomonas aeruginosa 19BR]"; counts++ } else { print }}' <input_file>
ADD COMMENT

Login before adding your answer.

Traffic: 2100 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6