![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating index for Annovar database file | canisirius | Bioinformatics | 3 | 05-28-2015 05:05 AM |
Blast database creation : Error | kalyankpy | Bioinformatics | 11 | 02-10-2014 10:30 AM |
No alias file for nr database? | bossanova352 | Bioinformatics | 18 | 01-23-2014 12:36 PM |
BLAST+ database error | nupurgupta | Bioinformatics | 7 | 06-08-2012 09:16 AM |
BLAST database error - when changing to new BLAST+ local program | biobio | Bioinformatics | 4 | 06-15-2011 06:20 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Belgium Join Date: May 2013
Posts: 9
|
![]()
Hi everyone,
I when I try to run BLAST+ on the nt database using a fasta file as query using the following command: Code:
blastn -db nt -query /home/chris/Desktop/A1_R1.fasta -out results.out BLAST Database error: No alias or index file found for nucleotide database [nt] in search path [/home/chris:$HOME/media/chris/Storage/Genomes_Transcriptomes_Proteomes/NCBI_databases/decompressed/nt:] I have checked in the 'nt' folder for the nt.nal file, and it is indeed present, so I cannot understand why blast+ cannot find the index. Any ideas? Thank you, Chris |
![]() |
![]() |
![]() |
#2 |
Junior Member
Location: Belgium Join Date: May 2013
Posts: 9
|
![]()
Ok, I managed to solve the issue. The problem was that in the .bashrc file I had followed the guidelines specified by NCBI for the installation and configuration of the db folder and had entered the following line to specify its location:
export BLASTDB='$HOME/media/chris/Storage/Genomes_Transcriptomes_Proteomes/NCBI_databases/decompressed/nt' However because in my computer setup (Ubuntu 14.04) the $HOME variable is set to my home directory, BLAST+ went searching in /home/chris then called the $HOME variable and added the path specified in the .bashrc file. The issue was therefore solved by removing the $HOME variable in the path to the BLAST databases. My .bashrc file now has the following: export BLASTDB='/media/chris/Storage/Genomes_Transcriptomes_Proteomes/NCBI_databases/decompressed/nt' I hope this info may be of use to someone in the future. Cheers, Chris |
![]() |
![]() |
![]() |
#3 |
Junior Member
Location: Washington DC Join Date: Jun 2015
Posts: 9
|
![]()
Hi Chris,
I have the same error you received, although I don't think it is because $HOME (I didn't include that). In your /media/chris/Storage/Genomes_Transcriptomes_Proteomes/NCBI_databases/decompressed/nt directory, do you have a nt.nal file or some other index file? I have only the decompressed folders (nt.00, nt01, etc.) which each have a number of files, including nt.nal in each and otherwise look correct. I'm wondering if I accidentally deleted a central index file or something. |
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
There should be no "folders" after decompressing the tarred index files you obtained from NCBI.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Location: Washington DC Join Date: Jun 2015
Posts: 9
|
![]()
Ah, thanks GenoMax, I must have decompressed incorrectly
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
If you do have folders, do you see 10 files in each folder with names in this format (e.g. nt.00.n**)?
|
![]() |
![]() |
![]() |
#7 |
Junior Member
Location: Washington DC Join Date: Jun 2015
Posts: 9
|
![]()
I do see the files. All of them are unique except for the nt.nai. Do you happen to know if I'm able to combine everything into a single folder (i.e. is the nt.nai file which is in each folder just a duplicate and so I only need one?).
I've found examples of how to extract the files properly; I had just done it via the interface instead of the command line which seems to not have worked. I could just re-download the NT database (I've already deleted the compressed files to save space) if I can't just merge all the files into a single directory. |
![]() |
![]() |
![]() |
#8 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Try moving all nt.NN.n* files (out of the folders) into a common folder. Put the nt.nal file in the same folder. It describes the files pieces in the "nt" database. You should only need one.
|
![]() |
![]() |
![]() |
#9 |
Junior Member
Location: Washington DC Join Date: Jun 2015
Posts: 9
|
![]()
Thanks for the replies. Just tried that and blastn appears to be running fine. That saves me the bandwidth of transferring the files again from NCBI; thanks for the help.
![]() Thanks |
![]() |
![]() |
![]() |
#10 | |
Junior Member
Location: Bengaluru Join Date: Apr 2018
Posts: 3
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Have you tried to use the index? It should be fine to have one copy of nt.nal for sure. If there is anything wrong you will get an error.
|
![]() |
![]() |
![]() |
#12 |
Junior Member
Location: Bengaluru Join Date: Apr 2018
Posts: 3
|
![]()
Can you please help me out, I don't know how to index. I have downloaded nt database which has 69 files and I have unzipped them into a folder. what should I do next?
|
![]() |
![]() |
![]() |
#13 |
Junior Member
Location: Washington DC Join Date: Jun 2015
Posts: 9
|
![]()
That should be all you need to do (haven’t worked with NT in a while now).
Just download and decompress; the folder everything is now in is your complete index. Depending on what software you are using, you’ll have to tell it where that folder is at (or the index file). You’ll have to look at the help for your software for exactly how to do this since a lot of people develop it slightly differently. The nt.nai is your ‘index file’ (as mentioned, it has a list of where all the other files are, but that’s the one you’ll enter into most programs). As far as setting up the database, there is no way of installing it so programs automatically know where it is - you will have to manually provide its location at some point in any computations you run, depending on the specific software. |
![]() |
![]() |
![]() |
#14 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Use the index for blast. Nothing else needs to be done beyond uncompressing files and making sure that all of them are in one folder. When you specify the index you only need to use the "basename" so it would be db=/path_to/nt
|
![]() |
![]() |
![]() |
#15 |
Junior Member
Location: Bengaluru Join Date: Apr 2018
Posts: 3
|
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
|
|