Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • DL88
    Junior Member
    • May 2016
    • 5

    Issue with BLAST database path!

    Hi all,

    I downloaded BLAST+ together with the env_nt pre-formatted database. All database files are under ../ncbi-blast-2.3.0+/db/env folder including the env_nt.nal folder.

    Following compilation instructions online I also set the PATH for both the Blast executable:

    gullived@PN0000044567:~$ export PATH=/home/gullived/ncbi-blast-2.3.0+/bin

    and the Blast database:

    gullived@PN0000044567:~$ export BLASTDB=/home/gullived/ncbi-blast-2.3.0+/db/env

    However when I try to run a blast command blast does not find the database and I get an error like this:

    blastn -query '/home/gullived/Daniel_Data/MEtabat folders/documents-export-2016-05-10/July_5000_Hala_superspecific.1.fa' -db env
    BLAST Database error: No alias or index file found for nucleotide database [env] in search path [/home/gullived:/home/gullived/ncbi-blast-2.3.0+/db/env::]

    It seems to add the path to the directory I call Blast from to the database path and a few additional colons. I tried to overcome this issue by adding a .ncbirc file and specifying the path to the database in that file, however that only made it worse and the error looked like this:

    BLAST Database error: No alias or index file found for nucleotide database [env] in search path [/home/gullived:”/home/gullived/ncbi-blast-2.3.0+/db”:/home/gullived/ncbi-blast-2.3.0+/db/env:]

    How can I tell the blast executable to only look for the database under the PATH I specify when setting the database path? and not add anything else to it?

    Any help is appreciated!

    Thank you!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Can you post a listing of

    Code:
    $ ls -lh /home/gullived/ncbi-blast-2.3.0+/db/env

    Comment

    • DL88
      Junior Member
      • May 2016
      • 5

      #3
      gullived@PN0000044567:~$ ls -lh /home/gullived/ncbi-blast-2.3.0+/db/env
      Command 'ls' is available in '/bin/ls'
      The command could not be located because '/bin' is not included in the PATH environment variable.
      ls: command not found
      gullived@PN0000044567:~$

      This is what I get when I call the above line.

      Thanks,

      Daniel

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Looks like you messed up your default $PATH when you tried to change it. That should be fixable by a reboot. In mean time try /bin/ls and the rest of the command above and post the results.

        Comment

        • DL88
          Junior Member
          • May 2016
          • 5

          #5
          Do you mean adding /bin/ls to the path?

          gullived@PN0000044567:~$ ls -lh bin/ls/home/gullived/ncbi-blast-2.3.0+/db/env
          Command 'ls' is available in '/bin/ls'
          The command could not be located because '/bin' is not included in the PATH environment variable.
          ls: command not found

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Try this.

            Code:
            $ /bin/ls -lh /home/gullived/ncbi-blast-2.3.0+/db/env
            There should be 240 files for env_nt.NN.n**. You don't need to post the entire output, if you see a lot of files.
            Last edited by GenoMax; 05-10-2016, 09:56 AM.

            Comment

            • DL88
              Junior Member
              • May 2016
              • 5

              #7
              Restarted my computer:

              Yes, there are a lot of files:

              gullived@PN0000044567:~$ /bin/ls -lh /home/gullived/ncbi-blast-2.3.0+/db/env
              total 43G
              -rw-r--r-- 1 gullived gullived 56M Nov 18 2012 env_nt.00.nhd
              -rw-r--r-- 1 gullived gullived 1.3M Nov 18 2012 env_nt.00.nhi
              -rw-rw-r-- 1 gullived gullived 416M Nov 18 2012 env_nt.00.nhr
              -rw-rw-r-- 1 gullived gullived 37M Nov 18 2012 env_nt.00.nin
              -rw-rw-r-- 1 gullived gullived 25M Nov 18 2012 env_nt.00.nnd
              -rw-rw-r-- 1 gullived gullived 97K Nov 18 2012 env_nt.00.nni
              -rw-r--r-- 1 gullived gullived 13M Nov 18 2012 env_nt.00.nog
              -rw-rw-r-- 1 gullived gullived 137M Nov 18 2012 env_nt.00.nsd
              -rw-rw-r-- 1 gullived gullived 2.8M Nov 18 2012 env_nt.00.nsi
              -rw-rw-r-- 1 gullived gullived 745M Nov 18 2012 env_nt.00.nsq
              .....
              -rw-r--r-- 1 gullived gullived 954M Apr 19 14:04 env_nt.22.nsq
              -rw-r--r-- 1 gullived gullived 378K May 2 13:54 env_nt.23.nhd
              -rw-r--r-- 1 gullived gullived 8.9K May 2 13:54 env_nt.23.nhi
              -rw-r--r-- 1 gullived gullived 3.4M May 2 13:54 env_nt.23.nhr
              -rw-r--r-- 1 gullived gullived 279K May 2 13:54 env_nt.23.nin
              -rw-r--r-- 1 gullived gullived 186K May 2 13:54 env_nt.23.nnd
              -rw-r--r-- 1 gullived gullived 788 May 2 13:54 env_nt.23.nni
              -rw-r--r-- 1 gullived gullived 93K May 2 13:54 env_nt.23.nog
              -rw-r--r-- 1 gullived gullived 906K May 2 13:54 env_nt.23.nsd
              -rw-r--r-- 1 gullived gullived 20K May 2 13:54 env_nt.23.nsi
              -rw-r--r-- 1 gullived gullived 27M May 2 13:54 env_nt.23.nsq
              -rw-r--r-- 1 gullived gullived 402 May 4 12:37 env_nt.nal
              gullived@PN0000044567:~$

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Great. Use the following. I suggest that you remove (and not use) any spaces in the file/dir names.


                Code:
                $ blastn -query '/home/gullived/Daniel_Data/MEtabat folders/documents-export-2016-05-10/July_5000_Hala_superspecific.1.fa' -db env_nt
                if full path is required then
                Code:
                blastn -query '/home/gullived/Daniel_Data/MEtabat folders/documents-export-2016-05-10/July_5000_Hala_superspecific.1.fa' -db /home/gullived/ncbi-blast-2.3.0+/db/env/env_nt

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                  by SEQadmin2


                  Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                  The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                  ...
                  06-02-2026, 10:05 AM
                • SEQadmin2
                  Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                  by SEQadmin2


                  With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                  Introduction

                  Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                  05-22-2026, 06:42 AM
                • SEQadmin2
                  Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                  by SEQadmin2

                  Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                  Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                  05-06-2026, 09:04 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 06-02-2026, 12:03 PM
                0 responses
                21 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-02-2026, 11:40 AM
                0 responses
                14 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 05-28-2026, 11:40 AM
                0 responses
                29 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 05-26-2026, 10:12 AM
                0 responses
                31 views
                0 reactions
                Last Post SEQadmin2  
                Working...