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

                      • GATTACAT
                        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                        by GATTACAT
                        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                        07-01-2026, 11:43 AM
                      • SEQadmin2
                        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                        by SEQadmin2


                        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                        Here are nine questions we think about, in roughly the order they matter, before...
                        06-18-2026, 07:11 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, Yesterday, 11:08 AM
                      0 responses
                      6 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-30-2026, 05:37 AM
                      0 responses
                      11 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-26-2026, 11:10 AM
                      0 responses
                      19 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-17-2026, 06:09 AM
                      0 responses
                      53 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...