bioinformatics BLAST Extract fasta sequences from a nucl blastdb

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

You can extract fasta sequence from a blastdb constructed from a fasta file using blastdbcmd which should be installed when you install makeblastdb.

blastdbcmd -entry all -db <database label> -out <outfile>

If you had a database called my_database which contained the files my_database.nhr, my_database.nsq, my_database.nin and you wanted your fasta output file to be called reference.fasta you would run the following:

blastdbcmd -entry all -db my_database -out reference.fasta


Got any bioinformatics Question?