How to change the prefix name of query ID in the blastx results file (tabular format)?
1
0
Entering edit mode
9.2 years ago
seta ★ 1.9k

Hi everybody,

I have a blastx result in a text file (tabular format), the query ID name (column 1) is like below:

CA100
CB180
CC200
CE400
Contig230

I want to change their prefix into "seq" to have the names as

seq100
seq180
seq200
seq400
seq230

Could you please help me out to do this?

Thanks in advance

blast alignment • 1.2k views
ADD COMMENT
0
Entering edit mode
9.2 years ago
5heikki 11k

This might work:

sed 's/^[A-Z]*[a-z]*/seq/' inFile > outFile

Might not be a very sensible thing to do if some query IDs become identical because of this, but whatever..

ADD COMMENT
0
Entering edit mode

Thanks friend.

ADD REPLY

Login before adding your answer.

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