Run Makeblastdb For Compressed File
1
7
Entering edit mode
10.6 years ago
shl198 ▴ 440

Hi all, Does anyone know how to make database for compressed file fasta.gz using blast? I am using the blast2.2.29+. I saw the tutorial of makeblastdb, there is no option for dealing with the fasta.gz file. Does that mean I have to unzip the file first and then build database?

blast+ makeblastdb • 13k views
ADD COMMENT
13
Entering edit mode
10.6 years ago
Neilfws 49k

You should be able to uncompress the file then pipe the output to makeblastdb, without an intermediate file. The command would look something like:

gunzip -c myfastafile.gz | makeblastdb -in stdin <other options>

or

gunzip -c myfastafile.gz | makeblastdb -in - <other options>
ADD COMMENT
4
Entering edit mode

I had the same question and was so relieved to find this solution, thanks!

However, I would like to note that the SECOND syntax above:

gunzip -c myfastafile.gz | makeblastdb -in - <other options>

is the correct one. The first one does not work

ADD REPLY

Login before adding your answer.

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