Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BLAST Database error: No alias or index file found for nucleotide database [nt]

    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
    I get the following error message:

    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
    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

    Comment


    • #3
      Similar Problem

      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.

      Comment


      • #4
        There should be no "folders" after decompressing the tarred index files you obtained from NCBI.

        Comment


        • #5
          Ah, thanks GenoMax, I must have decompressed incorrectly

          Comment


          • #6
            If you do have folders, do you see 10 files in each folder with names in this format (e.g. nt.00.n**)?

            Comment


            • #7
              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.

              Comment


              • #8
                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.

                Comment


                • #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. If my results look suspect I'll post a follow up but I'm guessing it will need to run for quite a while.

                  Thanks

                  Comment


                  • #10
                    unzipping the nt database tar files

                    Originally posted by jackfrost View Post
                    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.
                    I have downloaded nt.NN.tar.gz files from ncbi, when i extract them into a single folder there is three files which are common to all the tar file that is nt.nal tax.db.btd and taxdb.bti. These files get replaced while extracting. Please help me how to extract them and setup nt database

                    Comment


                    • #11
                      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.

                      Comment


                      • #12
                        I didnt do indexing, they have not mentioned that in blast manual

                        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?

                        Comment


                        • #13
                          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.

                          Comment


                          • #14
                            Originally posted by varun S View Post
                            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?
                            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

                            Comment


                            • #15
                              Originally posted by GenoMax View Post
                              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
                              Thank You, It worked.

                              Comment

                              Latest Articles

                              Collapse

                              • seqadmin
                                Advancing Precision Medicine for Rare Diseases in Children
                                by seqadmin




                                Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                                12-16-2024, 07:57 AM
                              • seqadmin
                                Recent Advances in Sequencing Technologies
                                by seqadmin



                                Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                                Long-Read Sequencing
                                Long-read sequencing has seen remarkable advancements,...
                                12-02-2024, 01:49 PM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by seqadmin, 12-17-2024, 10:28 AM
                              0 responses
                              34 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 12-13-2024, 08:24 AM
                              0 responses
                              51 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 12-12-2024, 07:41 AM
                              0 responses
                              35 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 12-11-2024, 07:45 AM
                              0 responses
                              46 views
                              0 likes
                              Last Post seqadmin  
                              Working...
                              X