I would like to add a tag to all my fasta files
1
0
Entering edit mode
2.0 years ago
pavelasquezv ▴ 50

Hi all,

Please, I would like to add a tag to all my fasta files.

head my_trypsins.fasta

>k141_39975_1 # 2 # 1138 # -1 # 
RPAQGAPGAHTPSGSFGPPPAPPAPVTAGESGAPQRRRTWVPVVSAAAAAALLASVGTA
>k141_8001_9 # 6812 # 8068 # 1 # 
MRRYVLPYLWPVITGVLIALLILPGLPNLLSNPFQSPASQDPTPAVVTVPAVVEPSPNRP
>k141_7139_56 # 56772 # 58046 # -1 # 
MRRYVLPYLWPVITGVLVAVLVLFALPEQLSNPFRDSEPQTPAPAISPAPTISTAPAVVA 

I would like something like this:

head my_trypsins.fasta

>Saboya 1-k141_39975_1 # 2 # 1138 # -1 # 
RPAQGAPGAHTPSGSFGPPPAPPAPVTAGESGAPQRRRTWVPVVSAAAAAALLASVGTA
>Saboya 1-k141_8001_9 # 6812 # 8068 # 1 # 
MRRYVLPYLWPVITGVLIALLILPGLPNLLSNPFQSPASQDPTPAVVTVPAVVEPSPNRP
>Saboya 1-k141_7139_56 # 56772 # 58046 # -1 # 
MRRYVLPYLWPVITGVLVAVLVLFALPEQLSNPFRDSEPQTPAPAISPAPTISTAPAVVA 

Many thanks!

All the best

linux shell • 623 views
ADD COMMENT
1
Entering edit mode
2.0 years ago

sed -i 's/^>/>Saboya 1-/' my_trypsins.fasta

ADD COMMENT
0
Entering edit mode

Thanks my friend!

ADD REPLY

Login before adding your answer.

Traffic: 2647 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