![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
BLAST Database error: No alias or index file found for nucleotide database [nt] | chris_s | Bioinformatics | 14 | 03-24-2019 08:11 AM |
BLAST Database error: No alias or index file found for protein database | gt259 | Bioinformatics | 2 | 05-25-2015 12:31 AM |
BLAST+ and blasting against the NCBI database | kevluv93 | Bioinformatics | 4 | 04-25-2015 02:25 AM |
How to create a BLAST database | aliealexandre | Bioinformatics | 22 | 02-02-2015 04:34 AM |
Create local BLAST database | SeqClark | Bioinformatics | 2 | 03-07-2011 02:17 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Allentown Join Date: Oct 2016
Posts: 6
|
![]()
Hello,
So I am making my own databases from fasta files using Blast version ncbi-blast-2.5.0+.dmg and getting an error that is linking back to by database creation by not having a .nal file created. I am entering in: makeblastdb -in test2.fasta -out MV1SDB_a/MV1SDB_a -parse_seqids -dbtype nucl And getting the following files outputs: MV1SDB_a.nhr MV1SDB_a.nin MV1SDB_a.nog MV1SDB_a.nsd MV1SDB_a.nsi MV1SDB_a.nsq I am not opening them after creating. But when then trying to run my query sequence against my database that was created, I get this: blastn -query HPV2-C2_E1.fasta -db MV1SDB_a/ -out testblastout.txt BLAST Database error: No alias or index file found for nucleotide database [MV1SDB/] in search path [/Users/richardkliman/Research/HPV/Regina/SRS_Mid_Vagina/SRS014466::] I have been searching for weeks on how to fix this .nal probelm but have had no luck. I did use the old version of ncbi-blast-2.25.... and thought that it may have had a error in it but updating my blast version did not fix my problem. So how to I create a .nal file to run my query sequence against on my Mac computer (with 4 terabytes of storage) on my UNIX terminal. |
![]() |
![]() |
![]() |
#2 |
Peter (Biopython etc)
Location: Dundee, Scotland, UK Join Date: Jul 2009
Posts: 1,543
|
![]()
My guess is this line has an extra slash:
Code:
blastn -query HPV2-C2_E1.fasta -db MV1SDB_a/ -out testblastout.txt Try: Code:
blastn -query HPV2-C2_E1.fasta -db MV1SDB_a -out testblastout.txt |
![]() |
![]() |
![]() |
#3 |
Junior Member
Location: Allentown Join Date: Oct 2016
Posts: 6
|
![]()
So I did that and still got the same answer. I needs the .nal file, thats what blast looks for as the Nucleotide database
blastn -query HPV2-C2_E1.fasta -db MV1SDB_a -out testblastout.txt BLAST Database error: No alias or index file found for nucleotide database [MV1SDB_a] in search path [/Users/richardkliman/Research/HPV/Regina/SRS_Mid_Vagina/SRS014466::] Richards-Mac-Pro:SRS014466 richardkliman$ |
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
What command did you use to create the original database (makeblastdb)? Can you provide that?
|
![]() |
![]() |
![]() |
#5 |
Senior Member
Location: USA, Midwest Join Date: May 2008
Posts: 1,178
|
![]()
You originally created your BLASTDB files in a subdirectory of your current working directory.
Code:
makeblastdb -in test2.fasta -out MV1SDB_a/MV1SDB_a -parse_seqids -dbtype nucl Code:
blastn -query HPV2-C2_E1.fasta -db MV1SDB_a/ -out testblastout.txt Code:
blastn -query HPV2-C2_E1.fasta -db MV1SDB_a/MV1SDB_a -out testblastout.txt A better solution is to create and store all your BLAST DBs in a single, common directory and set the environment variable BLASTDB to point to that directory. That way you can run BLAST from any directory location on your computer without having to worry about explicitly stating the path to your database. |
![]() |
![]() |
![]() |
#6 |
Peter (Biopython etc)
Location: Dundee, Scotland, UK Join Date: Jul 2009
Posts: 1,543
|
![]()
Well spotted kmcarr, I had missed the sub-directory problem.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
Location: Allentown Join Date: Oct 2016
Posts: 6
|
![]()
No, when you end with a slash it created a separate folder with all of my output files within it names MV1SDB_a. That is not my issue here. But thank you for trying to trouble shoot that.
From a different posting i was looking at I found out that I have to now figure out how to combine my individual databases into one larger database that is then the .na Last edited by rvgill; 10-28-2016 at 06:45 AM. |
![]() |
![]() |
![]() |
#8 | ||
Senior Member
Location: USA, Midwest Join Date: May 2008
Posts: 1,178
|
![]() Quote:
I understand that the database has been created in it's own directory and that is the problem, when you then try to run blastn it can't find the database because it isn't in the same directory you are running the command from and you don't provide the full path to the database with the "-db" parameter. Look again at the error message Quote:
You appear to have gotten hung up on the idea that you need an alias (.nal) file. You do not. alias files are only needed if your database is very large and therefore been broken up into several smaller chunks, or if you are want blast to perform a search by combining two or more separate databases. Pay attention to properly specifying the path/dbname when you run blastn and that should solve your problem. |
||
![]() |
![]() |
![]() |
#9 |
Junior Member
Location: Allentown Join Date: Oct 2016
Posts: 6
|
![]()
Yes, and it worked wonderfully I was able to blast my DB and Query sequence together. I am new to all of this and I have been working to solve this for about 4 weeks before finding this website. My professor had thought that needing the .nal file was the error that was occurring with my databases that I had to solve but now I know that is not the case.
Is there a way for me to run blast on multiple databases at the same time or for me to now combine my databases into one larger one. My databases have anywhere form 6000 to 20000 sequences in them that are at least 75 letters long. What I have to do is run about 30 query sequences all against about 70 databases. Thank you very much kmcarr you have been a tremendous help. |
![]() |
![]() |
![]() |
Tags |
blast-nt, database, file error, ncbi blastn, ncbi-blast |
Thread Tools | |
|
|