Hi everyone,
I am using Ubuntu 12.04 in VirtualBox to install ncbi-blast-2.2.27+ and I have downloaded the nucleotide database (nt.00.tar.gz - nt.12.tar.gz) from ftp://ftp.ncbi.nlm.nih.gov/blast/db.
When I try run the blastn by typing : blastn -db nt -query hbvref.fa, (the hbvref.fa is the sequence I obtained from Genbank) I got the following error:
****terminate called after throwing an instance of 'ncbi::CSeqDBException'**
**what(): NCBI C++ Exception:
"/am/ncbiapdata/release/blast/src/2.2.27/Linux32-Centos-icc/c++/ICC1010-ReleaseMT--Linux32-Centos-icc/../src/objtools/blast/seqdb_reader/seqdbatlas.cpp", line 152: Error: ncbi::SeqDB_ThrowException() - CSeqDBAtlas::MapMmap: While mapping file [/home/soklim/ncbi-blast-2.2.27+/db/nt.00.nsq] with 587556992 bytes allocated, caught exception:
NCBI C++ Exception:
"/am/ncbiapdata/release/blast/src/2.2.27/Linux32-Centos-icc/c++/ICC1010-ReleaseMT--Linux32-Centos-icc/../src/objtools/blast/seqdb_reader/seqdbatlas.cpp", line 152: Error: ncbi::SeqDB_ThrowException() - Validation failed: [end <= file_size] at /am/ncbiapdata/release/blast/src/2.2.27/Linux32-Centos-icc/c++/ICC1010-ReleaseMT--Linux32-Centos-icc/../src/objtools/blast/seqdb_reader/seqdbatlas.cpp:506**
**Aborted (core dumped)****
May I know what is the problem and how should I solve it?
Thank you very much.
You should ask this question to ncbi support after making sure your blast db is complete and not truncated. Did you extract all the tar.gz files after downloading?
Thanks for your advise, it works now.