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
                                Strategies for Sequencing Challenging Samples
                                by seqadmin


                                Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                                03-22-2024, 06:39 AM
                              • seqadmin
                                Techniques and Challenges in Conservation Genomics
                                by seqadmin



                                The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

                                Avian Conservation
                                Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
                                03-08-2024, 10:41 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by seqadmin, Yesterday, 06:37 PM
                              0 responses
                              10 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, Yesterday, 06:07 PM
                              0 responses
                              9 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 03-22-2024, 10:03 AM
                              0 responses
                              49 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 03-21-2024, 07:32 AM
                              0 responses
                              67 views
                              0 likes
                              Last Post seqadmin  
                              Working...
                              X