List record in a local BLAST database
2
0
Entering edit mode
9.0 years ago
songzewei ▴ 10

Is there a way to get a FASTA file containing all the record in a local BLAST database.

I've created a local database using makeblastdb with a fasta file, but was wondering if there is any way to reverse this process?

Thanks!

fasta sequence blast database • 3.0k views
ADD COMMENT
1
Entering edit mode
9.0 years ago
songzewei ▴ 10

I found the corresponding fastacmd in blast+, it is blastdbcmd.

blastdbcmd -db database -entry all -out database.fasta
ADD COMMENT
0
Entering edit mode
9.0 years ago
Felix Francis ▴ 600

Use fastacmd to generate a single fasta file from an existing BLAST database

You can use the following arguments along with it:

-d    BLAST database (the default is "nr")
-D    1 (dump the database in fasta format)
-o    filename for the output

Example: fastacmd -d cdna -D 1 -o seq.fasta

ADD COMMENT
0
Entering edit mode

fastacmd in not included in the latest blast+, is there a new command for this? I tried to search the blast+ document but cannot find it.

ADD REPLY

Login before adding your answer.

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