Error in blast+
1
0
Entering edit mode
12 weeks ago
Alexis • 0

Hello, I have a problem with creating a local database (blast+)

I downloaded NCBI BLAST and then put a fasta file in the bin folder. Later I opened this folder in PowerShell and wrote a command makeblastdb -in ownBLASTdb.fasta -out DataBase -dbtype prot -parse_seqids. I got this output:

Building a new DB, current time: 12/03/2023 19:53:12
New DB name:   C:\Program Files\NCBI\blast-2.15.0+\bin\ownBLASTdb.fasta
New DB title:  DataBase
Sequence type: Protein
Keep MBits: T
Maximum file size: 3000000000B
Adding sequences from FASTA; added 3033 sequences in 0.198722 seconds.


BLAST Database error: No alias or index file found for protein database [C:\Program] in search path [C:\Program Files\NCBI\blast-2.15.0+\bin;;]

What should I do to solve this problem?

And additional question: what path I should write to Environment Variables to use this db with python BLAST?

PowerShell blast Windows • 434 views
ADD COMMENT
2
Entering edit mode
12 weeks ago
Mensur Dlakic ★ 26k

Joys of doing Bioinformatics on Windows, and consequently dealing with spaces in file and directory names.

I suggest you move your database into a directory/folder that doesn't have a space in its name, so not C:\Program Files\NCBI\blast-2.15.0+\bin. For example, create a folder DB in your C: drive and place the database there. It is not good practice anyway to create database in the same directory where binaries are present. There is probably a more elegant solution, but this should work.

ADD COMMENT
0
Entering edit mode

Spaces are not much better in Linux either. Better never use spaces in naming files, and directories, and column names in SQL Database structures!

ADD REPLY
0
Entering edit mode

Thanks it works. I appreciate your input.

ADD REPLY

Login before adding your answer.

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