Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • lindashirley99
    Junior Member
    • Feb 2011
    • 3

    Local BLAST installation on Linux

    Hi everybody,
    I am trying to install standalone Blast (blast-2.2.25+) on my linux system. Following the step suggested by this webpage
    http://www.ncbi.nlm.nih.gov/books/NBK52640/

    After installation and configuration, when I type blastn command, the system always gives this error
    -bash: blastn: command not found
    even if I type ls,ll some basic unix command, it does't work.

    Please help!!!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Originally posted by lindashirley99 View Post
    Hi everybody,
    I am trying to install standalone Blast (blast-2.2.25+) on my linux system. Following the step suggested by this webpage
    http://www.ncbi.nlm.nih.gov/books/NBK52640/

    After installation and configuration, when I type blastn command, the system always gives this error
    -bash: blastn: command not found
    even if I type ls,ll some basic unix command, it does't work.

    Please help!!!
    Lindashirley99,

    It appears that you may not be in the right directory where you installed blast. Check where you presently are using the "pwd" command.
    If you are in the right directory then that directory is not in your $PATH. You can either amend your $PATH to include the blast directory or specify a "./" before issuing the actual command like so:

    prompt> ./blastn

    Comment

    • lindashirley99
      Junior Member
      • Feb 2011
      • 3

      #3
      Originally posted by GenoMax View Post
      Lindashirley99,

      It appears that you may not be in the right directory where you installed blast. Check where you presently are using the "pwd" command.
      If you are in the right directory then that directory is not in your $PATH. You can either amend your $PATH to include the blast directory or specify a "./" before issuing the actual command like so:

      prompt> ./blastn
      thx so much! You saved me!

      Comment

      • lindashirley99
        Junior Member
        • Feb 2011
        • 3

        #4
        Originally posted by GenoMax View Post
        Lindashirley99,

        It appears that you may not be in the right directory where you installed blast. Check where you presently are using the "pwd" command.
        If you are in the right directory then that directory is not in your $PATH. You can either amend your $PATH to include the blast directory or specify a "./" before issuing the actual command like so:

        prompt> ./blastn
        Regarding the above issue, is it possible to blast the query sequence just against a user-defined reference, e.g. fasta file of some particular gene sequences, but not the entire genome database?

        Comment

        • rglover
          rg
          • Dec 2008
          • 51

          #5
          yes, that's possible - you'll need to create a blast database from the sequences you want to search against:

          Code:
          makeblastdb -in sequences.fasta -dbtype nucl
          Then you'd blast as normal, but the name of your database would be sequences.fasta. The BLAST+ user manual is a good place for more information: http://www.ncbi.nlm.nih.gov/books/NBK1763/

          Comment

          • jp.
            Senior Member
            • Jul 2013
            • 142

            #6
            Hi
            Can someone explain me why I get this errors:
            I am using the blast for tophatfusionpost analysis.
            I have downloaded:
            1. ncbi-blast-2.2.29+
            2. nr
            3. nt
            dir structure is :
            wd/ncbi-blast-2.2.29+
            wd/blast/nt
            wd/blast/nr
            PATH=$PATH:wd/ncbi-blast-2.2.29+
            PATH=$PATH:wd/blast/nt
            PATH=$PATH:wd/blast/nr
            export PATH
            After that, when I run program,it can not find nt and nr databse.
            It gives these 3 errors as follows:
            sh: blastn: command not found
            blast database error: nt not found in the PATH [wd/blast/nt]
            blast database error: nt not found in the PATH [wd/blast/nr]
            These nt and nr are in the same PATH, why program can not find it?
            I read the blast home page, but can not understand why I get errors?
            Kind help is much appreciated.

            Comment

            • atcghelix
              Member
              • Jul 2013
              • 74

              #7
              Originally posted by jp. View Post
              Hi
              Can someone explain me why I get this errors:
              I am using the blast for tophatfusionpost analysis.
              I have downloaded:
              1. ncbi-blast-2.2.29+
              2. nr
              3. nt
              dir structure is :
              wd/ncbi-blast-2.2.29+
              wd/blast/nt
              wd/blast/nr
              PATH=$PATH:wd/ncbi-blast-2.2.29+
              PATH=$PATH:wd/blast/nt
              PATH=$PATH:wd/blast/nr
              export PATH
              After that, when I run program,it can not find nt and nr databse.
              It gives these 3 errors as follows:
              sh: blastn: command not found
              blast database error: nt not found in the PATH [wd/blast/nt]
              blast database error: nt not found in the PATH [wd/blast/nr]
              These nt and nr are in the same PATH, why program can not find it?
              I read the blast home page, but can not understand why I get errors?
              Kind help is much appreciated.
              Try setting an environmental variable $BLASTDB to include the directory that holds your blast database files (instead of including that directory in your $PATH).

              Also, if you put those settings in something like your .profile file, then you need to load that file first before your shell will update the environmental variables. The easiest way to do that is by logging out and logging in.

              Comment

              • rhinoceros
                Senior Member
                • Apr 2013
                • 372

                #8
                Originally posted by jp. View Post
                Hi
                Can someone explain me why I get this errors:
                I am using the blast for tophatfusionpost analysis.
                I have downloaded:
                1. ncbi-blast-2.2.29+
                2. nr
                3. nt
                dir structure is :
                wd/ncbi-blast-2.2.29+
                wd/blast/nt
                wd/blast/nr
                PATH=$PATH:wd/ncbi-blast-2.2.29+
                PATH=$PATH:wd/blast/nt
                PATH=$PATH:wd/blast/nr
                export PATH
                After that, when I run program,it can not find nt and nr databse.
                It gives these 3 errors as follows:
                sh: blastn: command not found
                blast database error: nt not found in the PATH [wd/blast/nt]
                blast database error: nt not found in the PATH [wd/blast/nr]
                These nt and nr are in the same PATH, why program can not find it?
                I read the blast home page, but can not understand why I get errors?
                Kind help is much appreciated.
                Read the manual, not the home page. For database paths, you need to create a .ncbirc file to your home where you provide the necessary information.
                savetherhino.org

                Comment

                • jp.
                  Senior Member
                  • Jul 2013
                  • 142

                  #9
                  thank you for kind reply
                  However, I m new in this field. is it possible to get detail steps for the same. I m using human blast.
                  I m trying reading blast mannual too.
                  thank you

                  Comment

                  • rhinoceros
                    Senior Member
                    • Apr 2013
                    • 372

                    #10
                    Originally posted by jp. View Post
                    thank you for kind reply
                    However, I m new in this field. is it possible to get detail steps for the same. I m using human blast.
                    I m trying reading blast mannual too.
                    thank you
                    Here, the #.#.# represents the version number of the current release, CHIP indicates the chipset, and OS indicates the operating system. Equivalent .rpm and .dmg files for Linux and Mac OSX are also available. These archives and their target platforms are listed in the table below.
                    savetherhino.org

                    Comment

                    • mastal
                      Senior Member
                      • Mar 2009
                      • 666

                      #11
                      For blast, the executables are usually in a subdirectory called bin,
                      so what you need to add to your path is

                      PATH=$PATH:wd/ncbi-blast-2.2.29+/bin

                      also set the BLASTDB variable as already mentioned by actghelix.

                      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, Today, 08:59 AM
                      0 responses
                      8 views
                      0 reactions
                      Last Post SEQadmin2  
                      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
                      15 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 05-28-2026, 11:40 AM
                      0 responses
                      29 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...